Home /
Expert Answers /
Computer Science /
complete-the-class-and-client-class-in-java-make-sure-to-explain-everything-in-detail-explain-the-pa893
(Solved): Complete the class and client class in Java. Make sure to explain everything in detail. Explain the ...
Complete the class and client class in Java. Make sure to explain everything in detail. Explain the use of arrays, the methods and any important concepts. The explanation is very important
The class structure for a Person domain can be viewed as follows Suppose that we are required to model students and teachers in our application. We can define a superclass called Person to store common properties such as and and subclasses Teacher for their specific properties. - For students, we need to maintain the courses taken and their respective grades; add a course with grade, print all courses taken and the average grade. Assume that a student takes no more than 30 courses for the entire program. - For teachers, we need to maintain the courses taught currently, and able to add or remove a course taught. Assume that a teacher teaches not more than 6 courses concurrently. Write the superclass and its subclasses and You also need to include a client class to test your code.