JavaScript OOP Introduction

Object Oriented Programming is one of the most advanced ways of programming. Before OOP's, list of instructions will be executed one by one. But in OOP's objects interact with one another.

JavaScript supports Object Oriented Programming,But It's important to note that there are no classes in JavaScript. Functions can be used to somewhat simulate classes.Also There is no access specifier like (public, private and protected) in JavaScript like other language (c++, PHP, Java, etc.) but we can simulate the concept using the variable scope in functions.

JavaScript Object Oriented Programming Concepts

  1. Class
  2. Object
  3. Constructor
  4. Inheritance
  5. Encapsulation
  6. Abstraction
  7. Polymorphism