Object-based language

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Short description An object-based language is a programming language that provides a construct to encapsulate state and behavior as an object. A language that also supports inheritance or subtyping is classified as object-oriented.[1] Even though object-oriented seems like a superset of object-based, they are used as mutually exclusive alternatives, rather than overlapping.Script error: No such module "Unsubst". Examples of strictly object-based languages

  1. REDIRECT Template:En dash

Template:R protected supporting an object feature but not inheritance or subtyping

  1. REDIRECT Template:En dash

Template:R protected are early versions of Ada,[2] Visual Basic 6 (VB6), and Fortran 90.

Some classify prototype-based programming as object-based even though it supports inheritance and subtyping albeit not via a class concept. Instead an object inherits its state and behavior from a template object. A commonly used language with prototype-based programming support is JavaScript;

References

<templatestyles src="Reflist/styles.css" />

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "Citation/CS1".

Script error: No such module "Check for unknown parameters".

Template:Programming paradigms navbox Script error: No such module "Navbox". Template:Authority control


Template:Prog-lang-stub