Question: please make it as simple as possible i am a beginner to java and do not use complicated methods in it. please make it like

 please make it as simple as possible i am a beginner

please make it as simple as possible i am a beginner to java and do not use complicated methods in it. please make it like a beginner is making.

Develop a set of classes that form a hierarchy for persons where a person can be a student and where a person can be an instructor Include fields that are common to students and instructors in a Person class: Strings firstName and lastName and integer birthYear. Person class also has a getName() method that returns a catenation of their first name and last name (e.g. Sirius Black). Override the oString() method to return a string that includes the person's name and birth year. Include the following fields for each of the subclasses: Student: major, student Number Instructor: degree, office All classes must have no-arg and full-arg constructors. Getters and setters are optional, only methods needed to produce the output are required. Have both student and Instructor classes override the getName() method in the following manner: Student: firstName lastName student Number e.g. Harry Potter 777 Instructor: lastName, degree e.g. S. Snape, M.Sc. Notes: - Use the Practitioner example from our notes/textbook to guide you - Determine the first initial in the getName method. - Ensure that all fields in the superclass have protected access. Demonstrate your hierarchy with a class named People that instantiates an object of each type and adds it to an ArrayList. Display your results in the following format: name (type) using the getName() method i.e. Sirius Black Harry Potter 777 (student) s. Snape, M.Sc. (Instructor)

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!