In plain English, what is an object model? [closed]

I read about objects models on Wikipedia, but it is too abstract to really make much sense to me. Can someone explain what an object model is in plain English?

1

For our purposes an Object is a thing or concept and a Model is a representation of the parts you need to refer to in your design/code.

An Interface is a description of what of what we need to know/do in our design/code.

For example: a Vehicle object model might be an interface which requires:-

Properties to represent the state of the object (capacity, speed, direction)

Methods which affect those properties (load/unload, go faster/slower, turn)

Exceptions that represent errors which may occur (collision, breakdown, no fuel)

That interface is then implemented as a class and the code might differ for a Hovercraft compared to a Car but for the code which needs to operate the vehicle, it should not need to know about those things.

There are two kinds of object models:

  • for a programming language, it is the characteristics of objects in that language. Three examples of those characteristics, there are others:

    • is there a notion of multiple inheritance or not (if present, there are more questions to answer, is it limited to something like interface or more general like in C++, what happens in case of apparent ambiguity: error like in C++ or a resolution algorithm like in Common Lisp, which resolution algorithm is also important)

    • are method’s validity checked statically (how? with an inheritance mechanism or something else) or dynamically (what happens if there is no method of that name? an error? is forwarding possible?)

    • are those characteristic ad hoc or do they have a theoretical foundation? Which? (Cardelli’s Object Calculus? Something else?)

    The object model is somewhat independent of the programming language. Languages targeting Microsoft’s CLR tend to have a more similar object models than others as the classes are designed with a model in mind. You may even have languages with several object models. C++/CLI has two, the C++ one and the CLR one. Objective C++ is another language with two object models: the C++ one and the Objective C one (which is nearer to the one of SmallTalk)

  • a (more or less standardized) set of classes representing something (documents, telescope, …). I won’t write more about that, it is just a modelization based on classes and objects.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

In plain English, what is an object model? [closed]

I read about objects models on Wikipedia, but it is too abstract to really make much sense to me. Can someone explain what an object model is in plain English?

1

For our purposes an Object is a thing or concept and a Model is a representation of the parts you need to refer to in your design/code.

An Interface is a description of what of what we need to know/do in our design/code.

For example: a Vehicle object model might be an interface which requires:-

Properties to represent the state of the object (capacity, speed, direction)

Methods which affect those properties (load/unload, go faster/slower, turn)

Exceptions that represent errors which may occur (collision, breakdown, no fuel)

That interface is then implemented as a class and the code might differ for a Hovercraft compared to a Car but for the code which needs to operate the vehicle, it should not need to know about those things.

There are two kinds of object models:

  • for a programming language, it is the characteristics of objects in that language. Three examples of those characteristics, there are others:

    • is there a notion of multiple inheritance or not (if present, there are more questions to answer, is it limited to something like interface or more general like in C++, what happens in case of apparent ambiguity: error like in C++ or a resolution algorithm like in Common Lisp, which resolution algorithm is also important)

    • are method’s validity checked statically (how? with an inheritance mechanism or something else) or dynamically (what happens if there is no method of that name? an error? is forwarding possible?)

    • are those characteristic ad hoc or do they have a theoretical foundation? Which? (Cardelli’s Object Calculus? Something else?)

    The object model is somewhat independent of the programming language. Languages targeting Microsoft’s CLR tend to have a more similar object models than others as the classes are designed with a model in mind. You may even have languages with several object models. C++/CLI has two, the C++ one and the CLR one. Objective C++ is another language with two object models: the C++ one and the Objective C one (which is nearer to the one of SmallTalk)

  • a (more or less standardized) set of classes representing something (documents, telescope, …). I won’t write more about that, it is just a modelization based on classes and objects.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật