AutoSave O ff INT201_0OP_Lab7_2020-2 - Protected View - Saved to this PC - Search Anass Alhami File Home Insert Draw Design Layout References Mailings Review View Help A Share O Comments PROTECTED...


AutoSave O ff<br>INT201_0OP_Lab7_2020-2 - Protected View - Saved to this PC -<br>Search<br>Anass Alhami<br>File<br>Home<br>Insert<br>Draw<br>Design<br>Layout<br>References<br>Mailings<br>Review<br>View<br>Help<br>A Share<br>O Comments<br>PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View.<br>Enable Editing<br>Lab 7- Exercises<br>Consider the following class hierarchy:<br>Person<br>-name:String<br>-address:String<br>+Person(name:String, address:String)<br>+getName ():String<br>+getAddress():String<br>+setAddress(address:String):void<br>+printlnfo (): void<br>

Extracted text: AutoSave O ff INT201_0OP_Lab7_2020-2 - Protected View - Saved to this PC - Search Anass Alhami File Home Insert Draw Design Layout References Mailings Review View Help A Share O Comments PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. Enable Editing Lab 7- Exercises Consider the following class hierarchy: Person -name:String -address:String +Person(name:String, address:String) +getName ():String +getAddress():String +setAddress(address:String):void +printlnfo (): void "name (address)" Student Teacher -numCourses:int = 0 -numCourses:int = 0 -courses:String[] = {} -grades:int[] = {} -courses:String[] = {} +Student (name:String, address:String) +addCourseGrade(course:String, grade:int):void +printGrades (): void +getAverageGrade(): double +printInfo ():void +Teacher (name:String, address:String) +addCourse(course:String):boolean +removeCourse(course:String):boolean +printInfo (): void Return false if the course already existed Return false if the course does not exist "Student: name(address)" "Teacher: name(address)" 1. Implement the above class hierarchy using Java 2. Write a program that reads information concerning one undergraduate and one graduate student and print the information. Page 1 of 1 D Focus 52 words 86% 5:02 PM O Type here to search ENG 3/22/2021 18

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here