Question
HealthAccount has the class attributes: an account number (this will be generated using a combination of numbers and letters not passed to this class), an
HealthAccount has the class attributes: an account number (this will be generated using a combination of numbers and letters not passed to this class), an AccountHolder object, the year the account was opened, and a flag for a smoker. Don't add others.
- MotorcycleAccount has the following class attributes: an account number (this will be generated using a combination of numbers and letters not passed to this class), the type of motorcycle, a vehicle identification number, year the motorcycle was built, an AccountHolder object, the year the account was opened, and a number of accidents the account holder has had. Don't add others.
public class HealthAccount extends AccountHolder{ private int accountNumber; public HealthAccount() { } }
this is what I have right now but I have no clue where to go from here
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Based on the provided code snippet it seems that you have a class hierarchy with a base class AccountHolder and two derived classes HealthAccount and MotorcycleAccount To continue building the classes ...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