Question: Define a class named Person that has data fields for the name, surname and ID number. Include only a non - default constructor to properly
Define a class named Person that has data fields for the name, surname and ID number.
Include only a nondefault constructor to properly initialize the object and a method to display
all the Persons information.
Next, define a class named SavingsAccount that has a customer Hint: Customer is a Person
an account number and a balance. Include a method to display SavingsAccounts information.
Also, include any other necessary statements needed to appropriately instantiate a
SavingsAccount object.
Finally, Write a main method that creates a SavingsAccount object and displays its
information. Save the file as s SavingsAccount.cpp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
