Professional Documents
Culture Documents
Object Oriented Programming
Object Oriented Programming
1. CLASS:-
Collection of similar types of elements.
A class is a user-defined data type
It represents the set of properties or methods that are common to all
objects of one type.
2. Object:-
An object is an real life entity tangible.
An Object is an instance of a Class.
An object has an identity, state, and behavior.
3. DATA AND METHODS
Belongings of an object
Behaviour or implementation or process or functions is known as the
methods
4. DATA ABSTRACTION
Data abstraction is one of the most essential and important features of
object-oriented programming. Data abstraction refers to providing
only essential information about the data to the outside world, hiding
the background details or implementation.
Focusing on the essential details and leaving the non essential details.
5. ENCAPSULATION
Binding up the data and the methods into a single unit
It is the mechanism that binds together code and the data it
manipulates.
6. POLYMORPHISM
Polymorph = poly + morph
Means many forms
polymorphism as the ability of a message to be displayed in more than
one form