Domain Model and Object Model

Asish AP picture Asish AP · Jan 4, 2013 · Viewed 8.8k times · Source
  • What is Domain Model?
  • What is Object Model?

Are Domain Model and Object Model the same thing? What is the difference between these two? Please explain with simple example. I'm new in this concepts. I searched a lot in Google. But I couldn't get any simple explanation and example.

Answer

stamhaney picture stamhaney · Jan 4, 2013

An Object Model of a system is a collection of classes and objects describing the relationships between them and the properties and methods contained within, in terms of the Object Oriented principles : Abstraction, Encapsulation, Inheritance and Polymorphism.

A Domain Model is an Object Model describing the problem domain. They include the domain objects in the problem domain and describe the attributes, behavior and relationships between them.