Question: Based on the given UML diagram, write class Person and class Student. Write a client class to test the two classes. -name:String +Person() Person
Based on the given UML diagram, write class Person and class Student. Write a client class to test the two classes. -name:String +Person() Person +Person(startName:String) +getName(): String +setName(newName:String):void -status:String +Student() Student +Student(startName:String, startStatus:String) +getStatus():String +setStatus(newStatus:String):void
Step by Step Solution
There are 3 Steps involved in it
code class Person private String name public Person public PersonString startName thisname startNam... View full answer
Get step-by-step solutions from verified subject matter experts
