Programming Languages/Object-oriented Languages

From Wikibooks, open books for an open world
< Programming Languages
Jump to: navigation, search

Object-Oriented Languages[edit]

  • Smalltalk has closures, based on Lisp and Simula67. Squeak is the modern implementation
  • Modern OOPLs are Java, C# (both inspired by C++), Dylan (inspired by CLOS), and Python (inspired by Smalltalk).
  • Ruby more than Python is an example of a modern OOPL, also Squeak.
Some common examples 
Smalltalk, Java, C#, Ruby

Hybrid languages allow object oriented and classic programming. Examples of such languages are Ada, OO-COBOL and C++. (Object Oriented Paradigms) Object-oriented methods are design and programming techniques that use the concept of class and object. Object-oriented real programming is based on identifying categories that represent organisms with well-defined characteristics and function. Object-oriented models include three main principles: Encapsulation. Data Hiding. Inheritance. (Polymorphism). Applications based on object-oriented methods and computer programs that consist of layers with their interactions: There are many and modern programming languages that support object-oriented methods, the most important of which is Java language where it is fully supported Languages that support object-oriented programming typically use inheritance for code reuse and extensibility in the form of either classes or prototypes. Those that use classes support two main concepts: Classes – the definitions for the data format and available procedures for a given type or class of object; may also contain data and procedures (known as class methods) themselves, i.e. classes contain the data members and member functions Objects – instances of classes Objects sometimes correspond to things found in the real world. For example, a graphics program may have objects such as "circle", "square", "menu". An online shopping system might have objects such as "shopping cart", "customer", and "product". Sometimes objects represent more abstract entities, like an object that represents an open file, or an object that provides the service of translating measurements from U.S. customary to metric