Types of Models in Object Oriented Modeling and Design

11 Dec, 2019
Intention of object oriented modeling and design is to learn how to apply object -oriented concepts to all the stages of the software development life cycle.Object-oriented modeling and design is a way of thinking about problems using models organized around real world concepts. The fundamental construct is the object, which combines both data structure and behavior.
Purpose of Models:
Testing a physical entity before building itCommunication with customersVisualizationReduction of complexity
Testing a physical entity before building it
Communication with customers
Visualization
Reduction of complexity
Types of Models:There are 3 types of models in the object oriented modeling and design are: Class Model, State Model, and Interaction Model. These are explained as following below.
Class Model:The class model shows all the classes present in the system. The class model shows the attributes and the behavior associated with the objects.The class diagram is used to show the class model.The class diagram shows the class name followed by the attributes followed by the functions or the methods that are associated with the object of the class.Goal in constructing class model is to capture those concepts from the real world that are important to an application.State Model:State model describes those aspects of objects concerned with time and the sequencing of operations – events that mark changes, states that define the context for events, and the organization of events and states.Actions and events in a state diagram become operations on objects in the class model. State diagram describes the state model.Interaction Model:Interaction model is used to show the various interactions between objects, how the objects collaborate to achieve the behavior of the system as a whole.The following diagrams are used to show the interaction model:Use Case DiagramSequence DiagramActivity Diagram
Class Model:The class model shows all the classes present in the system. The class model shows the attributes and the behavior associated with the objects.The class diagram is used to show the class model.The class diagram shows the class name followed by the attributes followed by the functions or the methods that are associated with the object of the class.Goal in constructing class model is to capture those concepts from the real world that are important to an application.
The class diagram is used to show the class model.The class diagram shows the class name followed by the attributes followed by the functions or the methods that are associated with the object of the class.Goal in constructing class model is to capture those concepts from the real world that are important to an application.
State Model:State model describes those aspects of objects concerned with time and the sequencing of operations – events that mark changes, states that define the context for events, and the organization of events and states.Actions and events in a state diagram become operations on objects in the class model. State diagram describes the state model.
Interaction Model:Interaction model is used to show the various interactions between objects, how the objects collaborate to achieve the behavior of the system as a whole.The following diagrams are used to show the interaction model:Use Case DiagramSequence DiagramActivity Diagram
Use Case Diagram
Sequence Diagram
Activity Diagram
Object-Oriented-Design
GBlog
Misc
Misc
Misc
Writing code in comment?
Please use ide.geeksforgeeks.org,
generate link and share the link here.
DSA Sheet by Love Babbar
GEEK-O-LYMPICS 2022 - May The Geeks Force Be With You!
Geek Streak - 24 Days POTD Challenge
What is Hashing | A Complete Tutorial
GeeksforGeeks Jobathon - Are You Ready For This Hiring Challenge?
Overview of Data Structures | Set 1 (Linear Data Structures)
vector::push_back() and vector::pop_back() in C++ STL
Top 10 algorithms in Interview Questions
How to write Regular Expressions?
Program for nth Catalan Number