Question
define a class named Person that contains the data fields for the first name and last name. Include only a non-default constructor that initializes the
define a class named Person that contains the data fields for the first name and last name. Include only a non-default constructor that initializes the data fields and a method that displays all the information about a Person. Write a Customer class that inherits from Person. In addition to the fields available in Person, Customer contains a customer number and the unsettled balance. overrides the Person's display method so that it displays all the information when used with a Customer, and equals() method that will compare two cutomer objects. Customer objects are considered equal if they have the same unsettled balance value
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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