Object Oriented Programming Concepts:
Object Oriented Programming follows bottom up approach in program design and emphasizes on safety and security of data.
Features Of Object Oriented Programming:
Inheritance:
- Inheritance is the process of forming a new class from an existing class or base class. The base class is also known as parent class or super class.
- Derived class is also known as a child class or sub class. Inheritance helps in reusability of code , thus reducing the overall size of the program.
Data Abstraction:
- It refers to the act of representing essential features without including the background details. Example: for driving, only accelerator, clutch and brake controls need to be learnt rather than working of engine and other details.
Data Encapsulation:
- It means wrapping up data and associated functions into one single unit called class.
- A class groups its members into three sections: public, private and protected, where private and protected members remain hidden from outside world and thereby helps in implementing data hiding.
Modularity:
- The act of partitioning a complex program into simpler fragments called modules is called as modularity.
- It reduces the complexity to some degree and,
- It creates a number of well defined boundaries within the program .
Polymorphism:
- Poly means many and morphs mean form, so polymorphism means one name multiple
- It is the ability for a message or data to be processed in more than one form.
- C++ implements Polymorhism through Function Overloading , Operator overloading and Virtual functions .