Question: A. Create a Person class in a package called Uno: a. With three attributes that store: i. Name I. A Medicare ID which changes every

 A. Create a Person class in a package called Uno: a.

A. Create a Person class in a package called Uno: a. With three attributes that store: i. Name I. A Medicare ID which changes every time a new Person is created 1. A static Calorie intake of 2000 Calories a day b. toString() method which returns a String that indicates the person's Medicare ID, name, and their Calorie intake per day B. Create a Student class in a package called Duo that extends Person, with: a. One attribute that stores the student's number of study hours b. A static attribute that includes the Caloric In-take of 500 more Calories than a person c. A to String0 method that indicates the person's Medicare ID name, their Caloric intake per day, as well as the number of hours they spend studying C. Create a Employee class in a package called Duo that extends person, with: a. A toString() method that returns a String contaming, i. Name ii. The Medicare ID I. A Calorie intake of 3000 Calories a day iv. "I don't have to study, HA!" D Create a Driver class Create an array of Students and Employees. b. Print each object in the array to the screen

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!