Question: 1 0 . 1 6 LAB: Course information ( derived classes ) Given main ( ) , define a course base class with methods to

10.16 LAB: Course information (derived classes)
Given main(), define a course base class with methods to set and get private fields of the following types:
String to store the course number
String to store the course title
Define Course's PrintInfo() method that outputs the course number and title.
Then, define a derived class offeredCourse with methods to set and get private fields of the following types:
String to store the instructor's name
String to store the location
String to store the class time
Ex. If the input is:the output is:
 10.16 LAB: Course information (derived classes) Given main(), define a course

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!