Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

Explain walter's model of dividend policy.

Answered: 1 week ago

Question

9. System creates a large, diverse talent pool.

Answered: 1 week ago