Following example shows how a simple farmework called myFramework is created.
Create a new Framework called myFramework through FrameworkFactory.create function. This function accepts configuration object.
var myFramework = FrameworkFactory;
Create new class called Person within myFramework namespace.
myFrameworkPerson = myFramework;
Create another class called myFramework.Employee which is derived from myFramework.Person.
myFrameworkEmployee = myFrameworkPerson;
Some applications of dummy framework myFramework.
var p1 = ;p1firstName = "Peter";p1lastName = "Parker";console; //Prints Peter Parkerp1fullName = "Peter Thompson"; //Can't set read-only propertiesvar e1 = 10;console; //Prints 10console; //Prints Salesconsole //Prints trueconsole //Prints trueconsole; //Prints the fullName loaded from the database.
Licence and Copyright
© 2011-2017 Maniar Technologies Private Limited, MIT license