1.
Identify any object in the real world
Student named Michelle is an object.
2. Identify the attributes and methods of the class
Attributes:-name: Michelle
Reg Number:G10/13913/2022
Date of Admission:22/09/2022
Address:00200
Phone number: 0790259969
Methods: Student()
Student(newname: character)
Student()character
Set Name(newname: character):void
3. Draw the UML diagram for the class
+---------------------+
| Person |
+---------------------+
| - name: String |
| - age: int |
+---------------------+
| + setName(name: String): void |
| + setAge(age: int): void |
| + getName(): String |
| + getAge(): int |
+---------------------+
4. DrawUMLdiagramfor3objects/instances of that class
+---------------------+
| Animal |
+---------------------+
| - name: String |
| - age: int |
+---------------------+
| + setName(name: String): void |
| + setAge(age: int): void |
| + getName(): String |
| + getAge(): int |
+---------------------+
+---------------------+
| Dog |
+---------------------+
| - breed: String |
+---------------------+
| + setBreed(breed: String): void |
| + getBreed(): String |
+---------------------+
| Cat |
+---------------------+
| - color: String |
+---------------------+
| + setColor(color: String): void |
| + getColor(): String |
+---------------------+