Anobject-based language is aimperative programming language that provides a construct to encapsulate state and behavior as anobject. A language that also supportsinheritance orsubtyping is classified asobject-oriented.[1] Even though object-oriented seems like a superset of object-based, they are used as mutually exclusive alternatives, rather than overlapping.[citation needed] Examples of strictly object-based languages – supporting an object feature but not inheritance or subtyping – are early versions ofAda,[2]Visual Basic 6 (VB6), andFortran 90.
Some classifyprototype-based programming as object-based even though it supports inheritance and subtyping albeit not via aclass concept. Instead an object inherits its state and behavior from atemplate object. A commonly used language with prototype-based programming support isJavaScript;
Ada 83 itself is generally not considered to be object-oriented; rather, according to the terminology of Wegner [Weg 87], it is said to be object-based, since it provides only a restricted form of inheritance and it lacks polymorphism.
Thisprogramming-language-related article is astub. You can help Wikipedia byexpanding it. |