The general concepts of OOP are given below.
- Data abstraction
- Data encapsulation
- Modularity
- Inheritance
- Polymorphism
Data abstraction : Abstraction refers to the act of representing essential features without including the background details or explanation.
Data encapsulation: Placing data and functions together is central idea of object oriented programming. This is known as encapsulation
Modularity: The act of partitioning a program into individual units is called modularity.
Inheritance: Inheritance is the capability of one class to inherit properties from another class.
Polymorphism: Polymorphism is the ability for a message or data to be processed in more than one form. The same operation differently depending upon the type of data it is working with.
No comments:
Post a Comment