February 15, 2001 - Class-Based vs. Prototype-Based Languages
February 15, 2001|
Class-Based vs. Prototype-Based Languages
Tips: February 2001
Yehuda Shiran, Ph.D.
A class is an abstract data type. It describes a family of objects that have the same set of methods and properties. It also defines these properties and methods. For example, the shape class could represent the set of all shapes in a drawing. An instance is the instantiation of a class. It is one of the members of the family that the class represents. The shape on the top left corner of the page could be an instance of the shape class, representing a single particular shape out of all shapes shown on a drawing.