OOP in JavaScript

OOP on classes

Introduction Classes and objects Properties of objects Multiple objects of the same class Class methods Method parameters Properties inside classes Methods inside classes Declaration of properties Constructor Parameters in the constructor Properties via constructor parameters Private properties Private methods Old-style privacy Property getters Property setters Advantages of Setters and Getters Method chains Class as a set of methods Array of objects Objects inside classes Manipulating objects in classes Comparison of objects instanceof operator Built-in classes Built-in DOM classes

Inheritance

Class Inheritance Inheritance of public methods Descendant methods Overriding parent methods Calling an overridden method Constructor in inheritance Private methods in inheritance Private properties in inheritance The problem of private properties in inheritance Protected methods Protected properties Class inheritance hierarchy Hierarchy of built-in classes

Advanced

Loss of context Method code Loss of context in method code Name conflicts Anonymous classes Classes and modules Classes, modules and inheritance Types of object properties Accessor getters Accessory Setters Getters of imaginary properties Setters of imaginary properties

Workshop

Circle Class Rectangle class Text class Period class Zate class ZateExt class Class Month Store class
enru