Object-based language: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>WikiCleanerBot
m v2.05b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation)
 
imported>Rbrwr
Adding local short description: "Type of programming language", overriding Wikidata description "programming language"
 
Line 1: Line 1:
{{Short description|Type of programming language}}
An '''object-based language''' is a [[programming language]] that provides a construct to encapsulate state and behavior as an [[Object (computer science)|object]]. A language that also supports [[inheritance (object-oriented programming)|inheritance]] or [[subtyping]] is classified as [[Object-oriented programming|object-oriented]].<ref>{{cite book|last=Wegner|first=Peter|title=Conference proceedings on Object-oriented programming systems, languages and applications - OOPSLA '87 |chapter=Dimensions of object-based language design |date=December 1987|volume=22|issue=12|pages=168–182|doi=10.1145/38765.38823|isbn=0897912470|s2cid=819420|editor1-first=Norman|editor1-last=Meyrowitz|chapter-url=http://www.cse.msu.edu/~stire/cse891f04/wegner.pdf}}</ref> Even though object-oriented seems like a superset of object-based, they are used as mutually exclusive alternatives, rather than overlapping.{{refneeded|date=October 2024}} Examples of strictly object-based languages {{endash}} supporting an object feature but not inheritance or subtyping {{endash}} are early versions of [[Ada (programming language)|Ada]],<ref>{{cite journal |last1=Barbey |first1=S. |last2=Kempe |first2=M. |last3=Strohmeier |first3=A. |title=Object-Oriented Programming with Ada 9X |journal=Draft Technical Report |year=1993 |url=http://www.adahome.com/9X/OOP-Ada9X.html|access-date=15 December 2013 |publisher=Swiss Federal Institute of Technology in Lausanne Software Engineering Laboratory |quote=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.}}</ref> [[Visual Basic 6]] (VB6), and [[Fortran 90]].
An '''object-based language''' is a [[programming language]] that provides a construct to encapsulate state and behavior as an [[Object (computer science)|object]]. A language that also supports [[inheritance (object-oriented programming)|inheritance]] or [[subtyping]] is classified as [[Object-oriented programming|object-oriented]].<ref>{{cite book|last=Wegner|first=Peter|title=Conference proceedings on Object-oriented programming systems, languages and applications - OOPSLA '87 |chapter=Dimensions of object-based language design |date=December 1987|volume=22|issue=12|pages=168–182|doi=10.1145/38765.38823|isbn=0897912470|s2cid=819420|editor1-first=Norman|editor1-last=Meyrowitz|chapter-url=http://www.cse.msu.edu/~stire/cse891f04/wegner.pdf}}</ref> Even though object-oriented seems like a superset of object-based, they are used as mutually exclusive alternatives, rather than overlapping.{{refneeded|date=October 2024}} Examples of strictly object-based languages {{endash}} supporting an object feature but not inheritance or subtyping {{endash}} are early versions of [[Ada (programming language)|Ada]],<ref>{{cite journal |last1=Barbey |first1=S. |last2=Kempe |first2=M. |last3=Strohmeier |first3=A. |title=Object-Oriented Programming with Ada 9X |journal=Draft Technical Report |year=1993 |url=http://www.adahome.com/9X/OOP-Ada9X.html|access-date=15 December 2013 |publisher=Swiss Federal Institute of Technology in Lausanne Software Engineering Laboratory |quote=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.}}</ref> [[Visual Basic 6]] (VB6), and [[Fortran 90]].



Latest revision as of 09:18, 21 June 2025

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.Template:Refneeded Examples of strictly object-based languages Template:Endash supporting an object feature but not inheritance or subtyping Template:Endash 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

Template:Reflist

Template:Programming paradigms navbox Template:Types of programming languages Template:Authority control


Template:Prog-lang-stub

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