I started to learn Object-oriented Programming in JavaScript using this course. This post is more of notes for the course I am taking.

Object-oriented programming is a programming paradigm or style of programming which is centered around objects and not on functions.

Four core concept or pillars of Object-oriented programming language

  • Encapsulation
  • Abstraction
  • Inheritance
  • Polymorphism

In Object-oriented programming we combine related functions and variables and call them as object.

Before Object-oriented programming we had procedural programming, which divided program into set of functions.