Question: Evaluation Student - name: String - ID: int - numOfAddresses : int + Student (n: String, id:int, num: int) + Student (student: Student) + addAddress(
Evaluation Student - name: String - ID: int - numOfAddresses : int + Student (n: String, id:int, num: int) + Student (student: Student) + addAddress( address: Address): boolean + toString(): String Class Test: Main(); 1- Create a Student object named std which can hold a maximum of 2 addresses and has the following information: name: Sara ID: 1234 2- Add 2 addresses to Sara (Note: read input from the user). 3- Display info of Sara student. 1 addresses Address - street: String - city: String - country: String + Address( st: String, C: String, count: String) + toString(): String
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
