Wednesday, September 20, 2017

Core Features of Object Oriented Programming

Encapsulation:

* It links code and data together.
* It provides information hiding
* It is achieved through object that contains same data and the functions to manipulate them
* It provides certain level of security to the data

Inheritance:

* It supports the concept of reuse-ability
* Using inheritance we can create a general class that defines common properties. This class may be then inherited by other more specific classes each adding only those things that are unique to the inheriting class
* A class that is inherited is known as base class/supper class
* A class that does inheriting is known as derived class/sub class

Polymorphysm:

* It is a mechanism that allows one interface to be used implement a number of task.
* The specific action is determine by exact nature of the situation by the compiler

No comments: