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

23rd Oct 2016, 12:28 PM
Vincent Inzie Lawson
Vincent Inzie Lawson - avatar
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. */ }
25th Oct 2016, 8:55 PM
Bobby Turnip (Scye)
Bobby Turnip (Scye) - avatar