1 / 19

Object-Oriented Modeling and Design: Object Model Overview

Learn about the static structure of objects in a system, identify classes, relationships, and create object models with attributes and operations. Understand associations, aggregations, and class inheritance.

sgrantham
Download Presentation

Object-Oriented Modeling and Design: Object Model Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Object Oriented Modeling and Design • Presentation by- • Mr. D.P. Pandit • Mr. B.B. Shaharkar • Mr. S.S. Shakhapure • Part-I Introduction to Object Oriented Modeling and Design • Part-II Object Model • Part-III Dynamic and functional Model Walchand Institute of Technology, Solapur (www.witsolapur.org)

  2. Object Oriented Modeling and Design Part-II Object Model Walchand Institute of Technology, Solapur (www.witsolapur.org)

  3. Part-II Object Model • It describes the static structure of a objects in a system. • It identifies the objects, the classes into which the objects can be grouped into and the relationships among the objects. • It Identifies relationship to other objects and classes • It creates user object model diagram. • It defines object attributes and their operations. Walchand Institute of Technology, Solapur (www.witsolapur.org)

  4. Professor Class Name Name EmpID Attributes Join( ) Operations Leave( ) Retire( ) change( ) Address DOB Save( ) Walchand Institute of Technology, Solapur (www.witsolapur.org)

  5. Professor + Name - EmpID # Join( ) - Leave( ) # Retire( ) - Change( ) • Public level + • Protected level # • Private level - - Address # DOB - Save( ) Walchand Institute of Technology, Solapur (www.witsolapur.org)

  6. Example : Professor :DPP Class Name Only Object Name Only DPP: Professor Class and Object Name Walchand Institute of Technology, Solapur (www.witsolapur.org)

  7. Professor DPP:Professor Name: DPP Name: String EmpID: Int EmpID: 1131 Join( ) Join( ) Leave( ) Leave( ) Retire( ) Retire( ) Change( ) Change( ) Class Object Address: String Address: WIT, Solapur DOB: Date DOB: 28/08/1988 Save( ) Save( ) Walchand Institute of Technology, Solapur (www.witsolapur.org)

  8. PPT: File Files TXT:File Name: OER Name: String Name: OER Size: Int Size: 100 Size: 300 Create( ) Create( ) Create( ) Delete( ) Delete( ) Delete( ) Read( ) Read( ) Read( ) Write( ) Write( ) Write( ) Class Object Object Type: ppt Type: String Type: txt Created Date: Date Created Date: 9/11/2017 Created Date: 9/11/2017 Append( ) Append( ) Append( ) Walchand Institute of Technology, Solapur (www.witsolapur.org)

  9. Links and Association Staff Department Is member of Is managed by HOD manages Association Name • Relationships between object classes (known as associations) are shown as lines linking objects Walchand Institute of Technology, Solapur (www.witsolapur.org)

  10. Association Name Works for Professor University Professor University Association Class Links and association Role Names Employee Employer Walchand Institute of Technology, Solapur (www.witsolapur.org)

  11. A special form of association that models a whole-part relationship between an aggregate (the whole) and its parts Whole Part Student Department Aggregation Walchand Institute of Technology, Solapur (www.witsolapur.org)

  12. Library Books • A form of aggregation with strong ownership and coincident lifetimes • The parts cannot survive the whole/aggregate Part Whole Aggregation Walchand Institute of Technology, Solapur (www.witsolapur.org)

  13. Walchand Institute of Technology, Solapur (www.witsolapur.org)

  14. 0..* * 1..* 0..1 2..4 2, 4..6 1 Walchand Institute of Technology, Solapur (www.witsolapur.org)

  15. takes Association - Multiplicity • A teacher teaches 1 to 3 courses (subjects) • Each course is taught by only one teacher. • A student can take between 1 to 5 courses. • A course can have 10 to 300 students. teaches 1 1..3 Teacher Course 1..5 Students 10..300 Walchand Institute of Technology, Solapur (www.witsolapur.org)

  16. A relationship among classes where one class shares the structure and/or behavior of one or more classes • Defines a hierarchy of abstractions in which a subclass inherits from one or more superclasses • Single inheritance • Multiple inheritance • Generalization is an “is-a-kind of” relationship Walchand Institute of Technology, Solapur (www.witsolapur.org)

  17. Account balance name number Withdraw() CreateStatement() Savings Checking GetInterest() Withdraw() Withdraw() • One class inherits from another Ancestor Superclass (parent) Generalization Relationship Subclasses (Child) Descendents Walchand Institute of Technology, Solapur (www.witsolapur.org)

  18. References [1] Applying UML and Patterns- By Craig Larman [2] Object Oriented Modeling and Design -JamesRumbaugh, Prentice Hall India [3] Object Oriented Software Engineering - Ivan Jacobson, Pearson Education Asia [4] Succeeding with the Booch OMT Methods -A practical approach - Lockheed Martin, Addison Wesley [5] Object Oriented Analysis and Design using UML - H. Srimathi, H. Sriram, A. Krishnamoorthy Walchand Institute of Technology, Solapur (www.witsolapur.org)

  19. End of Part-II Thank You Walchand Institute of Technology, Solapur (www.witsolapur.org)

More Related