Question: CHALLENGE ACTIVITY 1 0 . 1 . 2 : Basic inheritance Assign courseStudent's name with Smith, age with 2 0 , and ID with 9
CHALLENGE
ACTIVITY
: Basic inheritance
Assign courseStudent's name with Smith, age with and ID with Use the printAll member method and a separate print In statement to output courseStudent's data. Sample output from the given program:
Name: Smith, Age: ID:
Learn how our autograder works
public int getID
return idNum;
end
Code from file StudentDerivationFromPerson. java
public class StudentDerivationFromPerson
public static void mainString args
Student coursestudent new Student ;
Your solution goes here
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
