Posts

Showing posts from July, 2010

Prototype based programming

Image
Prototype-based programming is a style of object oriented programming. Prototype based porgramming encourages the programmer to focus on the behavior of some set of examples and only later worry about classifying these objects that are later used in a fashipn similar to classes. Prototype based programming is also known as class-less, prototype-oriented or instance-based programming. Classless programming style is supported by the following programming languages. JavaScript, ActionScript , Lua Open Laszlo In prototype based programming behaviour resues ( known as inheritance in class-based languages) is performed via a process of cloning existing objects that serve as prototypes. Cloning refers to a process whereby a new object is constucted by copyin the behavior of an existing object (its prototype). The new object then carries all the qualities of the original. From this point on, the new object can be modified. The resulting child object maintains an explicit link...