World Library  
Flag as Inappropriate
Email this Article

Object model

Article Id: WHEBN0005646487
Reproduction Date:

Title: Object model  
Author: World Heritage Encyclopedia
Language: English
Subject: Odaba, Data modeling, Object-oriented programming, Database model, Object Definition Language
Collection: Object-Oriented Programming
Publisher: World Heritage Encyclopedia

Object model

In computing, object model has two related but distinct meanings:

  1. The properties of objects in general in a specific computer programming language, technology, notation or methodology that uses them. Examples are the object models of Java, the Component Object Model (COM), or Object-Modeling Technique (OMT). Such object models are usually defined using concepts such as class (computer science), generic function, message, inheritance, polymorphism, and encapsulation. There is an extensive literature on formalized object models as a subset of the formal semantics of programming languages.
  2. A collection of objects or classes through which a program can examine and manipulate some specific parts of its world. In other words, the object-oriented interface to some service or system. Such an interface is said to be the object model of the represented service or system. For example, the Document Object Model (DOM) [1] is a collection of objects that represent a web page in a web browser, used by script programs to examine and dynamically change the page. There is a Microsoft Excel object model [2] for controlling Microsoft Excel from another program, and the ASCOM Telescope Driver [3] is an object model for controlling an astronomical telescope.

An object model consists of the following important features:

Object Reference
Objects can be accessed via object references. To invoke a method in an object, the object reference and method name are given, together with any arguments.
An interface provides a definition of the signature of a set of methods without specifying their implementation. An object will provide a particular interface if its class contains code that implement the method of that interface. An interface also defines types that can be used to declare the type of variables or parameters and return values of methods.
An action in object-oriented programming (OOP) is initiated by an object invoking a method in another object. An invocation can include additional information needed to carry out the method. The receiver executes the appropriate method and then returns control to the invoking object, sometimes supplying a result.
Programs can encounter various errors and unexpected conditions of varying seriousness. During the execution of the method many different problems may be discovered. Exceptions provide a clean way to deal with error conditions without complicating the code. A block of code may be defined to throw an exception whenever particular unexpected conditions or errors arise. This means that control passes to another block of code that catches the exception.

See also


  • Weisfeld, Matt (2003). The Object-Oriented Thought Process (2nd Edition). Sams.  
  • Fowler, Martin (1996). Analysis Patterns: Reusable Object Models. Addison-Wesley.  
  • K. Fisher, F. Honsell, and J.C. Mitchell (1994). "A  
  • Marini, Joe (2002). Document Object Model: Processing Structured Documents. Osborne/McGray-Hill.  

External links

  • Document Object Model (DOM) The official W3C definition of the DOM.
  • "The Java Object Model"
  • The Ruby Object Model: Data Structure in Detail
  • Object Membership: The core structure of object-oriented programming
  • Object Model Features Matrix A "representative sample of the design space of object models" (sense 1).
  • ASCOM Standards web site
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.