- Object Oriented Programming is used to represent the real
world data. - The main focus is on data.
- Simula is considered to be the first object oriented programming language.
Object Oriented Programming Concepts
There are 6 object oriented programming concepts in Java
which are given below.
which are given below.
- Class
- Object
- Encapsulation
- Polymorphism
- Inheritance
- Abstraction
Class
Class is a collection of similar type of objects which have
some common properties.
some common properties.
Object
Object is any real world entity which have physical
existence either living or non-living.
existence either living or non-living.
Encapsulation
The wrapping up of data and functions into a single unit (class)
is known as encapsulation.
is known as encapsulation.
Polymorphism
Polymorphism is used to assume the ability of several
different forms. Or we can say performing one task in different ways.
different forms. Or we can say performing one task in different ways.
Inheritance
Creating a new class form an existing class is known as
inheritance. It provides code reusability.
inheritance. It provides code reusability.
Abstraction
Hiding the complexity and showing the functionality is known
as abstraction. Showing the essential data and hiding the non essential data.
as abstraction. Showing the essential data and hiding the non essential data.
In next tutorials we will discuss these concepts in detail.
nice!
Very Nice Explanation
All the best !