ArticleslgStudy

computer science

Object model

Object model is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Object model rather than just read about it. In short: In computing, object model has two related but distinct meanings: 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).

Key takeaways

  • Object model belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Object model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Object model from memory before moving on to harder problems.

Reference excerpt

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

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, 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. 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) is a collection of objects that represent a page in a web browser, used by script programs to examine and dynamically change the page. There is a Microsoft Excel object model [1] for controlling Microsoft Excel from another program, and the ASCOM Telescope Driver is an object model for controlling an astronomical telescope.

Features 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.

Interfaces 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.

Actions 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.

Exceptions 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 Object-oriented programming Object-oriented analysis and design Object database Object Management Group Domain-driven design Eigenclass model

Literature Weisfeld, Matt (2003). The Object-Oriented Thought Process (2nd ed.). Sams. ISBN 0-672-32611-6. Fowler, Martin (1996). Analysis Patterns: Reusable Object Models. Addison-Wesley. ISBN 0-201-89542-0. Fisher, K.; Honsell, F.; Mitchell, J.C. (1994). "A lambda calculus of objects and method specialization". [1993] Proceedings Eighth Annual IEEE Symposium on Logic in Computer Science (PDF). pp. 3–37. doi:10.1109/LICS.1993.287603. ISBN 0-8186-3140-6. S2CID 19578302. Archived from the original (PDF) on 2018-07-03. Marini, Joe (2002). Document Object Model: Processing Structured Documents. Osborne/McGray-Hill. ISBN 0-07-222436-3. Lippman, Stanley (1996). Inside the C++ Object Model. Addison-Wesley. ISBN 0-201-83454-5.

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

Worked examples

Example 1 — a first encounter with Object model

Start with the simplest possible case. Write down what Object model claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Object model before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Object model ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Object model

In research
Object model appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Object model in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Object model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Object-oriented programming, Software engineering, so understanding it makes those chapters shorter.
In everyday life
Look for Object model outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Object model” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Object model in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Object model means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Object model out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Object model in simple terms?

In computing, object model has two related but distinct meanings: 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 Techni…

Why does Object model matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Object model?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Object model.

Tags

  • Object-oriented programming
  • Software engineering

Keep exploring