Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started