Wednesday, December 5, 2018

Object Oriented Paradigm Short Notes | Short Notes on Object Oriented Paradigm

Object Oriented Paradigm Short Notes | Short Notes on Object Oriented Paradigm


OBJECT: 

An object is combination of data and methods. 

OBJECT = DATA + Methods

Example: Chair, car, Cycle


CLASS: 

A Class is a collection of objects.

ENCAPSULATION:


Combining data and methods into a single unit is called as Encapsulation.


ABSTRACTION:


The feature of representing essential features without including their background details is called as Abstraction. 


INHERITANCE:

Accessing the properties of objects of one class with the properties of objects of another class is called as Inheritance.

Note: Reusability is one of the important advantages of Inheritance. 

POLYMORPHISM:

Existing in more than one form is called Polymorphism.

OBJECT COMMUNICATION OR MESSAGE PASSING :

A single object cannot do anything. if an object wants to perform a task, then it should communicate with another object with its concerned methods. This concept is called Object Communication or Message Passing.

 

No comments:

Post a Comment