Question: Write the constructor for the Student class which inherits from the Person class. Make sure all member variables are provided values passed by the invoker
Write the constructor for the Student class which inherits from the Person class. Make sure all member variables are provided values passed by the invoker of the method. NOTE: Do not rewrite any existing code, add functionality to the Person class, or add code outside of the classes bodies.
Code is JAVA
lass Person { protected String mName; private int mID; Parent(String _name, int _ID) { mName = _name; mID = _ID; } } class Student extends Person { private String mDegreeName; private float mGPA; // TODO: Implement the constructor } Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
