Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a class definition for a subclass of the Person object. Some examples of what you could use are: Student, Instructor, Soldier, and Politician. Please

image text in transcribed
Create a class definition for a subclass of the Person object. Some examples of what you could use are: Student, Instructor, Soldier, and Politician. Please include the following requirements: Your class definition will extend the Person class that can be downloaded from the Canvas site under Examples You will add several appropriate properties to the class that are specific to that type of person (e.g. rank for a soldier, office for a politician, etc.) Your class definition will have all of the appropriate get and set methods as well as at least two constructors Use data protection including appropriate Exception Handling in constructors and set methods as needed (minimum of 1 property must be protected for full credit) . . . . You will create Javadoc comments for the class and compile them with the Javadoc compiler to share with another student for Assignment #2 Now that we are in an advanced class, I will be requiring everyone to follow the standard coding conventions used in Java This assignment is intended to get you to demonstrate knowledge of Encapsulation and Inheritance within class definitions, as well as the use of Javadoc comments for producing class documentation

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions