190 likes | 220 Views
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.
E N D
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)
Object Oriented Modeling and Design Part-II Object Model Walchand Institute of Technology, Solapur (www.witsolapur.org)
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)
Professor Class Name Name EmpID Attributes Join( ) Operations Leave( ) Retire( ) change( ) Address DOB Save( ) Walchand Institute of Technology, Solapur (www.witsolapur.org)
Professor + Name - EmpID # Join( ) - Leave( ) # Retire( ) - Change( ) • Public level + • Protected level # • Private level - - Address # DOB - Save( ) Walchand Institute of Technology, Solapur (www.witsolapur.org)
Example : Professor :DPP Class Name Only Object Name Only DPP: Professor Class and Object Name Walchand Institute of Technology, Solapur (www.witsolapur.org)
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)
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)
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)
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)
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)
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)
Walchand Institute of Technology, Solapur (www.witsolapur.org)
0..* * 1..* 0..1 2..4 2, 4..6 1 Walchand Institute of Technology, Solapur (www.witsolapur.org)
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)
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)
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)
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)
End of Part-II Thank You Walchand Institute of Technology, Solapur (www.witsolapur.org)