SlideShare a Scribd company logo
FrameworkPrototype
purpose of presentationis to write prototypal oopjavascript application
prototype frameworkJavaScript Framework that aims to give advanced class-driven features
language frameworksreusable set of libraries or classes thatis designed to support a language in specific matter
language frameworksreusable set of libraries or classes thatis designed to support a language in specific matter   such as dotNet framework, jquery framework, Zend framework and prototype framework
javascript languageobject-oriented client-side scripting language
javascript languageobject-oriented client-side scripting languagejavascript is leading new era of windows applications
Fierce competition over javascriptPrototype JS - Dojotoolkit - Developer.Yahoo - SpryRico - Mootools - Sproutcore - QooxdooMidori JS - ArchetypeJS - SimpleJS - JQueryJS.Fleegix - Uize - Mochikit - Rialto
Fierce competition over javascriptPrototype JS - Dojotoolkit - Developer.Yahoo - SpryRico - Mootools - Sproutcore - QooxdooMidori JS - ArchetypeJS - SimpleJS - jQueryJS.Fleegix - Uize - Mochikit - Rialto
Top frameworks
Top frameworksjQuery : the highest functionalitySpry : the best ajax frameworkprototype : the best oop supporter
Top frameworksjQuery : the highest functionalitySpry : the best ajax frameworkprototype : the best oop supporter(this is why..?)
How to install..?http://www.prototypejs.org/download v1.7.0.1 since November 16, 2010<script type="text/javascript" src="prototype.js"></script>
oop concepts1- Encapsulation or classification2- Data abstraction3- Inheritance4- Polymorphism
oop concepts1- Encapsulation or classification2- Data abstraction3- Inheritance4- Polymorphism5- Aggregation or containment
Encapsulationclassification of methods and propertiesthat is every class is capsulethen the instance of the class is called
Encapsulationclassification of methods and propertiesthat is every class is capsulethen the instance of the class is called object
javascript Encapsulationclass-less ..classes .. methods .. constrictorsdefined as functionno direct access modifiers
class declerationfunction Class_Name(parameters){this.property_name = value;this.method_name = methodName;	} //or class declaration is the constructorfunction Class_Name(parameters){this.property_name = value;this.method_name = function methodName(){...};	}
prototype class declerationvarClass_Name = Class.create();Class_Name.prototype = { initialize: function(parameters){ //constructor this.property_name1 = value1; this.property_name2 = value2;}method_name:function(parameters) {......}}
prototype class declerationvarClass_Name = Class.create({ initialize: function(parameters){ //constructor this.property_name1 = value1; this.property_name2 = value2;}method_name:function(parameters) {......}});
instancingvarobj = new Class_Name(parameters);var x = obj.property_name;obj.method_name();
javascript modifierspublic private priviliged
javascript modifierspublic: can be accessed from outside the class function Class_Name(parameters){this.method_name = methodName;	}//orfunction Class_Name(parameters){Class_Name.prototype.method_name = methodName;obj.method_name();}
javascript modifiersprivate : can't be accessed from outside the class//basic idea is that the member isn't includedby this keywordfunction Class_Name(parameters){ function methodName(){}	}obj.methodName();
javascript modifiersprivate : can't be accessed from outside the class//basic idea is that the member isn't includedby this keywordfunction Class_Name(parameters){ function methodName(){}	}obj.methodName();
javascript modifierspriviliged : public function that is in the class that can access private methodsfunction Class_Name(parameters){ function methodName(){...}this.pmethod_name =  function(){methodName();};	}//orfunction Class_Name(parameters){ function methodName(){...}Class_Name.prototype.pmethod_name =  function(){methodName();};	}obj.pmethod_name();
Data abstraction the process of making Summarized description for the common area of properties and methodsthat is not a class
Data abstraction the process of making Summarized description for the common area of properties and methodsthat is not a class No real data abstraction in client-scripting
Inheritancerelation between classes when a class has all the properties and methods of the otherthe small is called parent
javascript Inheritanceclassical or class-based Inheritanceprototypal Inheritance
classical inheritance/* we include the parent in the son class by the running of the parent class as part of the son */ function parent(parameters){...}function son(){this.inheritFrom = parent;this.inheritFrom(parameters);}
prototypal InheritanceObject.extend(parentobj,sonobj)and if sonobj was not created yet then....Class.create(Object.extend(parentobj,sonobj))
prototypal Inheritancevar parent = Class.create({....});var son = class.create(Object.extend(new parent(),{......}));
polymorphismthe method apperance in many-shapes amonginherited classes and every class implements its own method then only one is called()
polymorphism
polymorphism
polymorphismOnly key marking is supported in javascriptfor accessing the higher polymorphic method we use $superwe need just Class.create()Class.create(parent,sonobj);
polymorphismvar parent = Class.create({method_name:function(parameters){....}});var son = class.create(parent,{method_name: function($super,parameters){$super(parameters)}});
Aggregationthe concept that is talking about the ability of class to contain anotherobject
Key Wordsmix-in modules Native extensionsValue and refrence in prototypePrototype DOM supportPrototype API’sJSON in prototype
Prototype Framework
Prototype FrameworkPrototype Creator

More Related Content

PPTX
Object Oriented Javascript part2
PPT
PHP - Introduction to Object Oriented Programming with PHP
PDF
09 Object Oriented Programming in PHP #burningkeyboards
PPTX
oops concept in java | object oriented programming in java
PPT
Object Oriented Programming with Java
PPTX
PPT
Java: Inheritance
PPTX
Introduction to OOP(in java) BY Govind Singh
Object Oriented Javascript part2
PHP - Introduction to Object Oriented Programming with PHP
09 Object Oriented Programming in PHP #burningkeyboards
oops concept in java | object oriented programming in java
Object Oriented Programming with Java
Java: Inheritance
Introduction to OOP(in java) BY Govind Singh

What's hot (19)

PPT
Oops in Java
PPTX
Overloading and overriding in vb.net
PPTX
Only oop
PPSX
Seminar on java
PPTX
Multiple inheritance possible in Java
PDF
java-06inheritance
PPTX
Classes, objects in JAVA
PPT
04 inheritance
PPT
PHP- Introduction to Object Oriented PHP
PPTX
JavaScript OOPS Implimentation
PPTX
‫Object Oriented Programming_Lecture 3
PPT
Java inheritance
PDF
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
PPTX
Inheritance and Polymorphism Java
PPTX
Class and object
PPT
Oops concepts in php
PPTX
Object oreinted php | OOPs
PPT
Java Programming - Inheritance
Oops in Java
Overloading and overriding in vb.net
Only oop
Seminar on java
Multiple inheritance possible in Java
java-06inheritance
Classes, objects in JAVA
04 inheritance
PHP- Introduction to Object Oriented PHP
JavaScript OOPS Implimentation
‫Object Oriented Programming_Lecture 3
Java inheritance
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
Inheritance and Polymorphism Java
Class and object
Oops concepts in php
Object oreinted php | OOPs
Java Programming - Inheritance
Ad

Similar to Framework prototype (20)

PPT
Javascript Object Oriented Programming
PPTX
Ajaxworld
PPT
JavaScript In Object Oriented Way
PDF
JavaScript Core
PPTX
JavsScript OOP
PPTX
Object oriented javascript
PDF
Object Oriented Programming in JavaScript
PPT
Beginning Object-Oriented JavaScript
KEY
Javascript tid-bits
PPT
Advanced Javascript
PPT
Advanced Javascript
PPT
Advanced Javascript
PPTX
ECMA5 approach to building JavaScript frameworks with Anzor Bashkhaz
PPTX
Js: master prototypes
PPT
Advanced JavaScript
PDF
The prototype property
PPT
OOP in JavaScript
PDF
Prototype
PDF
Prototype 120102020133-phpapp02
PDF
Javascript under the hood 2
Javascript Object Oriented Programming
Ajaxworld
JavaScript In Object Oriented Way
JavaScript Core
JavsScript OOP
Object oriented javascript
Object Oriented Programming in JavaScript
Beginning Object-Oriented JavaScript
Javascript tid-bits
Advanced Javascript
Advanced Javascript
Advanced Javascript
ECMA5 approach to building JavaScript frameworks with Anzor Bashkhaz
Js: master prototypes
Advanced JavaScript
The prototype property
OOP in JavaScript
Prototype
Prototype 120102020133-phpapp02
Javascript under the hood 2
Ad

More from DevMix (15)

PPTX
Framework prototype
PPTX
Framework prototype
PPTX
Devmix algorithm
PPTX
Select your career
PPTX
Devmix algorithm
PPT
New in html5
PPTX
Algorithms
PPTX
Intro To DataBase
PPTX
Intro to windows app
PPTX
OOP in C#
PPTX
Logos samples
PPTX
C sharp fundamentals Part I
PPT
Python
PPTX
Making a presentation
PPTX
Cloud Computing
Framework prototype
Framework prototype
Devmix algorithm
Select your career
Devmix algorithm
New in html5
Algorithms
Intro To DataBase
Intro to windows app
OOP in C#
Logos samples
C sharp fundamentals Part I
Python
Making a presentation
Cloud Computing

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Electronic commerce courselecture one. Pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Machine Learning_overview_presentation.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPT
Teaching material agriculture food technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
The AUB Centre for AI in Media Proposal.docx
Encapsulation_ Review paper, used for researhc scholars
Electronic commerce courselecture one. Pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf
A Presentation on Artificial Intelligence
Machine learning based COVID-19 study performance prediction
Machine Learning_overview_presentation.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectral efficient network and resource selection model in 5G networks
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Teaching material agriculture food technology
Digital-Transformation-Roadmap-for-Companies.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Assigned Numbers - 2025 - Bluetooth® Document
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

Framework prototype