You are on page 1of 9

Dell presentation

template
Standard 4:3 layout
Presenter Name
Title

Topics

Topic 1
Topic 2

Room for text

Services

Introduction
Prototypal Inheritance: Itis a style ofobject-oriented
programmingin which behaviour reuse (known
asinheritance) is performed via a process
ofcloningexistingobjectsthat serve asprototypes. This
model can also be known asprototypal,prototypeoriented,classless, orinstance-basedprogramming.
Javascript is the only language using it in the mainstream
today.

Room for text

Services

Prototypal Inheritance In Javascript


In Javascript, everything is an object. And, each object is part
of a prototype chain. Each object in a prototype chain defines
a "prototype" of the object below it. "Prototype", means that it
defines a default of what the next object should look like.
Super constructors are a crucial ingredient to effective
prototypal inheritance.

Room for text

Services

Prototypal inheritance over


classical inheritance

Room for text

Services

Object Creation and Extension


Object Creation Object.Create()
Cloning an Existing Object
Extending a Newly Created Object
Prototypal pattern over the constructor pattern
Combining Object Creation and Extension Extend
function

Room for text

Services

Two Methods of Prototypal


Inheritance
Delegation or Differential Inheritance
Concatenation
Advantages and Disadvantages

Room for text

Services

Room for text

Services

You might also like