Java is a programming language for developing enterprise applications.
This language is evolved from Oak. It was developed by Sun Microsystems.
Object-oriented programming is a programming uses "objects" and their interactions to design applications and computer programs.
Any OOP must support the following features.
1.Abstraction
2.Encapsulation
3.Inheritance
4.Polymorphism
Before going through all these, first learn
What is a class?
What is an Object?
Class
class is the blue print from which an individual objects.
or simply we can say
A class is a collection of related data and related methods.
Object
Instance of the class is known as Object.
i.e when we create an object memory will be assigned.
for example an engineer will give a plan to construct a building. With that plan, a constructor will build multiple buildings.
here plan is the class and its not existed really.
building is an object and it exists really.
Lets see the OOPS features:
This language is evolved from Oak. It was developed by Sun Microsystems.
Object-oriented programming is a programming uses "objects" and their interactions to design applications and computer programs.
Any OOP must support the following features.
1.Abstraction
2.Encapsulation
3.Inheritance
4.Polymorphism
Before going through all these, first learn
What is a class?
What is an Object?
Class
class is the blue print from which an individual objects.
or simply we can say
A class is a collection of related data and related methods.
Object
Instance of the class is known as Object.
i.e when we create an object memory will be assigned.
for example an engineer will give a plan to construct a building. With that plan, a constructor will build multiple buildings.
here plan is the class and its not existed really.
building is an object and it exists really.
Lets see the OOPS features: