From: Eytan H. <ey...@tr...> - 2001-01-29 13:14:49
|
Lets really get the terms straight. Class-Oriented: You develop classes. You do this be using the prototype of an object. Then this object becomes basically a prototype, a class and then for inheritance an object says use this objects prototype and add these members. Object-Oriented: You develop classes by defining an interface and then implementing this interface. To use this object you create a new object based on this class. Inheritance is dealt with by saying I want to inherit this and this class. Then your new object has the same members as those classes with pointers to their implementation. There is no PO only CO and OO the difference is inheritance and memory management but since there is no memory management in JS there is no difference but inheritance. 8an |