Welcome Guest! (App Version 5.16)
List of JS inbuilt MethodsInbuilt Methods in JS String Methods Array Methods Number Methods Math Methods Boolean Methods Regexp Methods
Ajax CallsRest APIs JSON Format Making Service Calls
Advanced JSObject Oriented JS Inheritance in JS Prototypal Inheritance Polymorphism Encapsulation & DA Anonymous Functions IIFE Closures Objects in JS How to create Objects in JS Scope in JS Types of Scope Hoisting Context in JS Concept of 'This' Call, Apply, Bind Asynchronous Operations Callbacks Promises
JS QuizJS Quiz 1
This type of inheritance is very different from the 'Classical Inheritance' present in languages like - Java, C++, C#, etc.
Prototypal Inheritance is also - single chain inheritance, multiple-inheritance is not possible via this type of inheritance.
Note: "Most of other prominent languages such as PHP, Python, and Java are class-based languages, which define classes as blueprints for objects and have Classical Inheritance."
Note: "The most famous question is round the corner 'Inheritance in JS' and most common answer is 'via Prototype or Prototypal Inheritance'."
We will learn more about Prototypal Inheritance in next chapter.