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 :

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!