0
trying to make contructor for student id with inheritance
how can make a class user with subclass student with name, id, gpa, etc and then call it in the main class which is System? help me please
1 Answer
0
You would need a class "User"
public class User
{
}
and the subclass is
public class Student extends User
{
/* put the variables in here, ie GPA, name, etc. use getters and setters, which are in the course, to retrieve the variables.
*/
}