0
Derive two classes, DepAcc_2 and SavAcc_2
Derive two classes, DepAcc_2 and SavAcc_2, from the Account class. The SavAcc_2 contains the members of the base class and an interest rate. Marks [5] ■ For both classes, define constructors to provide default values for all parameters, add access methods, and add a display() method for screen output. ■ Test the new classes by initializing objects of the DepAcc_2 and SavAcc_2 types in the object declarations and outputting them. Then modify both savings and a deposit account interactively and display the new values.
2 Antworten
+ 2
Post your code
0
please post entire qstn