ㅤㅤ

What is Object Oriented Programming in java | What's a Class in java

What is Object Oriented Programming in java

What is Object Oriented Programming in java | What's a Class in java

What is Object Oriented Programming?

It is a problem solving technique to develop software systems. It's a technique to think real world in terms of objects. Object maps the software model to real world concept. These objects have.

What's a Class in java

What's a Class?

responsibilities and provide services to application or other objects, a blue print of objects. It's a template

A class describes all the attributes of objects, as well as the methods that implement the behavior of member objects. It's a comprehensive data type which represents of object.


What's an Object in java

What's an Object

It's a basic unit of a system. An object is an entity that has attributes, behavior, and identity. Objects are members of a class Attributes and behavior of an object are defined by the class definition.


What's the relation between Classes and Objects in java

(A) What's the relation between Classes and Objects?

They look very much same but are not same. Class is a definition, while object is instance of the class created. Class is a blue print while objects are actual objects existing in real world. Example we have class CAR which has attributes and methods like Speed, Brakes, Type of Car etc.Class CAR is just a prototype, now we can create real time objects which can be used to provide functionality. Example we can create a Maruti car object with 100 km speed and urgent brakes.

What is Object Oriented Programming in java | What's a Class in java

Post a Comment

Thanks for Comment

Previous Post Next Post