assignment 2

3
Assignment-2 OOAD with UML UNIT-3 AITS Class Modeling and Advance class modeling 1. Explain class diagram and object diagram with example. 2. Define following term with UML notation and examples: 1. Values 2. Attributes 3. Operations 4. Methods 3. Which types of relationship used between classes and also between object? Explain it with notation and examples. 4. Define following term with UML notation and examples: 1. Multiplicity for association end and Attributes 2. Association end name 5. Explain Bag, sequence and order constraint with example. And Differentiated them. 6. Explain Association. What are association classes? When it is useful to model an association as class? 7. Which type of association used to reduce the multiplicity from many to one? Explain briefly. 8. Explain generalization in UML with its advantages. Also explain method overriding. 9. Define following term with UML notation and examples: 1. Enumeration 2. Scope 3. Visibility 4. Reification 10. Explain ternary association and N-ary association with example. 11. Differentiate the following. 1. Association and Aggregation 2. Association and Composition 3. Aggregation and Composition 4. Inheritance and Multiple Inheritance 12. Explain Abstract class & Metadata and self (reflexive) association. Prepared BY: Ankita Chauhan

Upload: ankita-chauhan

Post on 27-Nov-2014

101 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Assignment 2

Assignment-2 OOAD with UMLUNIT-3 AITS

Class Modeling and Advance class modeling

1. Explain class diagram and object diagram with example.2. Define following term with UML notation and examples:

1. Values2. Attributes3. Operations4. Methods

3. Which types of relationship used between classes and also between object? Explain it with notation and examples.

4. Define following term with UML notation and examples:1. Multiplicity for association end and Attributes2. Association end name

5. Explain Bag, sequence and order constraint with example. And Differentiated them.

6. Explain Association. What are association classes? When it is useful to model an association as class?

7. Which type of association used to reduce the multiplicity from many to one? Explain briefly.

8. Explain generalization in UML with its advantages. Also explain method overriding.

9. Define following term with UML notation and examples:1. Enumeration2. Scope3. Visibility4. Reification

10.Explain ternary association and N-ary association with example.11.Differentiate the following.

1. Association and Aggregation2. Association and Composition3. Aggregation and Composition4. Inheritance and Multiple Inheritance

12.Explain Abstract class & Metadata and self (reflexive) association.13.Categorize the following relationship into generalization, aggregation,

Composition, association, or n-ary association. & also prove it.

1. A country has Capital City.2. A drawing object is text, a geometrical object or group.3. Modems and keyboards are input/output devices.4. Car has accelerator, break and wheels as parts.5. Windows is composed of lot of frames.

Prepared BY: Ankita Chauhan

Page 2: Assignment 2

Assignment-2 OOAD with UMLUNIT-3 AITS

6. An account is either type savings or type current.7. A student takes a course from professor.8. A polygon is composed of an order set of points.

14. Prepare Class diagram & object diagram. Use Association name and end names where required. Include associations and qualified associations, aggregations, generalizations, and multiplicity. You may add additional class. Also show attributes and operations.

• School, playground, principal, school board, classroom, book, student, teacher, canteen, restroom, computer, desk, chair.

15. Draw the class diagram of voting management system.

16. Draw the class diagram of workstation windowing system.

Other Questions

1. Explain the concept propagation of operation.2. Write a short note on constraint, Derive data, and package in details.3. Explain multiple inheritances in details.

Note: only write 1 to 16 questions in assignment book. Note write other questions. There is only for reference.

Prepared BY: Ankita Chauhan