Object-Oriented Programming

THE FOUR PILLARS OF OOPS

  1. Inheritance
  2. Polymorphism
  3. Encapsulation
  4. Abstraction
  1. Compile-time polymorphism
  2. Run-time polymorphism.
  • Abstract class: is a restricted class that cannot be used to create objects (to access it, it must be inherited from another class).
  • Abstract method: can only be used in an abstract class, and it does not have a body. The body is provided by the subclass (inherited from).

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store