Skip to content

Object Oriented Programming in CPP

Object Oriented Programming in CPP

Contents

  • Object oriented programming basics
  • inheritance
  • composition
  • class heirarchy
  • polymorphism

Pillars of Object oriented programming

  • Encapsulation : combination of data and methods that operate on the data.
  • Inheritance : Part of the implementation is done in the parent class.
  • Polymorphism : In the context of cpp, means the behaviour of the program changes depending on the method params.
  • Abstraction : Keeps the internal details away from the programmer.

  • Single Inheritance

  • Multiple Inheritance
  • Polymorphism
  • Composition
  • Objects