Skip to content

Repository files navigation

OOP_JS

Programming styles

Four pillar

Class

  1. Abstraction

  2. Inheritance // Inheritance child class will have access to parents ko properties and method

  3. Encapsulation hide complex machanism (property or method ) from the user

  4. Polymorphism

concept -

this = this cant be use in arrow function,beacuse it cant target local instance it only will target global instance. new = we can initialize new object with new keyword

prototype

Method & Properties shared by all instances of an object

things to remember

First letter should be in capital while initializing the constructor

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages