OOP - Basic Features

Basic Features of OOP are given below:
  1. Abstraction
  2. Encapsulation
  3. Inheritance
  4. Polymorphism
This are very simple and common terms in OOP. Like the following real life scenario:



  1. Abstraction: Abstraction is just hiding the complexity. For example when we drive car then if we push the accelerator the car moves faster. Here we don't know exactly what happens when we push the accelerator. This is a kind of real life abstraction. In OOP the concept is completely same. For example in JAVA we use many event listener class methods to trigger events. Here abstraction is used. An abstract class can never be instantiated can only be extended.
 

Comments