Question
In java, define a class named Students that contains an instance variable of type string that stores the student name, and another variable of type
In java, define a class named Students that contains an instance variable of type string that stores the student name, and another variable of type string that stores studentID, with appropriate constructors, accessor and mutator methods. Also, create a method named outputStudentDetails that outputs the name and studentIDs. Next define a class named CSstudents that is derived from Students. The class should have variables of type string that stores two courses that the student has taken. The derived class should also have appropriate constructors , accessor and mutator methods. The class should also have methods to output the details of the student.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started