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)

PPTX
Object oriented programming in php
PPT
Class 7 - PHP Object Oriented Programming
PPTX
OOPS in java | Super and this Keyword | Memory Management in java | pacakages...
PPT
Php object orientation and classes
PPTX
Classes and objects
PPTX
OOPS IN PHP.pptx
PPTX
c91632a4-2e92-4edf-b750-358da15ed1b1.pptx
PPTX
Object oriented javascript
PDF
php_final_sy_semIV_notes_vision.pdf
PDF
php_final_sy_semIV_notes_vision.pdf
PDF
php_final_sy_semIV_notes_vision.pdf
PDF
php_final_sy_semIV_notes_vision (3).pdf
PPT
Introduction to OOP with PHP
PPT
Object Oriented Programming Concept.Hello
PDF
Advance java kvr -satya
PDF
Adv kvr -satya
PPTX
Object oriented programming in php 5
PPTX
Object oriented programming in php 5
PPTX
UNIT III (8).pptx
PPTX
UNIT III (8).pptx
Object oriented programming in php
Class 7 - PHP Object Oriented Programming
OOPS in java | Super and this Keyword | Memory Management in java | pacakages...
Php object orientation and classes
Classes and objects
OOPS IN PHP.pptx
c91632a4-2e92-4edf-b750-358da15ed1b1.pptx
Object oriented javascript
php_final_sy_semIV_notes_vision.pdf
php_final_sy_semIV_notes_vision.pdf
php_final_sy_semIV_notes_vision.pdf
php_final_sy_semIV_notes_vision (3).pdf
Introduction to OOP with PHP
Object Oriented Programming Concept.Hello
Advance java kvr -satya
Adv kvr -satya
Object oriented programming in php 5
Object oriented programming in php 5
UNIT III (8).pptx
UNIT III (8).pptx
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
Unlocking AI with Model Context Protocol (MCP)
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Approach and Philosophy of On baking technology
PDF
Getting Started with Data Integration: FME Form 101
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
A Presentation on Artificial Intelligence
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectral efficient network and resource selection model in 5G networks
Approach and Philosophy of On baking technology
Getting Started with Data Integration: FME Form 101
SOPHOS-XG Firewall Administrator PPT.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
A Presentation on Artificial Intelligence
Digital-Transformation-Roadmap-for-Companies.pptx
Heart disease approach using modified random forest and particle swarm optimi...
Per capita expenditure prediction using model stacking based on satellite ima...
OMC Textile Division Presentation 2021.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
cloud_computing_Infrastucture_as_cloud_p

Framework prototype