OOPs - suniladhya/Advantage GitHub Wiki

1 Encapsulation: Wrapping up of data and member function in to a single entity.

Abstract Class: Providing the Essential information without providing the background detals.

Polymorphism:

  • The Ability of an object to take multiple form is known as polymorphism.
  • Polymorphism allows one interface to be used for a general class of actions.

Types

  • static : Linking a function to an object at the compile time. Can be implemented using function overloading, Operator Overloading
  • Dynamic : Linking a function to an object at the run time. Can be implemented using function over riding

Interface is a contract between itself and any class that implements it. And this contract states that any class that implements this interface will implement the interface's property, methods and events.

Advantage: Easy to Mock