What Is Prototypal Inheritance

Home Forums Java Script What Is Prototypal Inheritance

This topic contains 1 reply, has 2 voices, and was last updated by  Sushmita Ghosh 3 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1399

    Divya
    Participant

    What Is Prototypal Inheritance In JavaScript?

    #1400

    Sushmita Ghosh
    Keymaster

    Most of the Object Oriented languages support classes and objects. Here, Classes inherit from other classes.

    In JavaScript, the inheritance is prototype-based. This means that there are no classes. Instead, there is an object that inherits from another object.

    JavaScript provides three different types of Prototypal Inheritance.

    Delegation (I.E. The Prototype Chain).
    Concatenative Inheritance (I.E. Mixins, Object.Assign()).
    Functional (Not To Be Confused With Functional Programming).

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Pasham Technology © 2018 Pasham Technologies