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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!