0% found this document useful (0 votes)
37 views

Assignment - 2

The document contains 10 questions asking to design class diagrams and object diagrams for common real world entities such as student, teacher, patient, passenger, credit card, doctor, ATM card, date and time. The questions ask to define attributes, operations, visibility and datatypes for classes and objects representing these entities.

Uploaded by

Harshit Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Assignment - 2

The document contains 10 questions asking to design class diagrams and object diagrams for common real world entities such as student, teacher, patient, passenger, credit card, doctor, ATM card, date and time. The questions ask to define attributes, operations, visibility and datatypes for classes and objects representing these entities.

Uploaded by

Harshit Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment -2

Questions:

1. Draw the class notation for “student”.


2. Draw the class notation for “Teacher”.
3. Draw the class notation for “Patient”.
4. Draw the class notation for “Passenger”.
5. Define the object “Passenger”with possible attributes and
operations with visibility.
6. Consider a single object “Credit Card” and draw an object
diagram with possible attributes,visibility and datatype.
7. Design class “Doctor” with visibility.
8. Define an Object of “ATM Card”with possible attributes and
operations with visibility.
9. Design class “Date”.
10. Design class “Time”.

You might also like