Inheritance / Polymorphism / Encapsulation / Abstraction

Inheritance JavaScript is a bit confusing for developers experienced in class-based languages (like Java or C++), as it is dynamic and does not provide a class implementation per se (the class keyword is introduced in ES2015, but is syntactic sugar, JavaScript remains prototype-based). When it comes to inheritance, JavaScript only has one construct: objects. Each

Read More

Difference between class and object

OBJECT CLASS Object is an instance of a class. Class is a blueprint or template from which objects are created. Object is a real world entity such as pen, laptop, mobile, bed, keyboard, mouse, chair etc. Class is a group of similar objects. Object is a physical entity. Class is a logical entity. Object is

Read More