Assuming savings account is a subclass of bank account


Problem

1. In the Manager class of Self Check 9, override the get Salary method so that it returns the sum of the salary and the bonus.

2. Assuming Savings Account is a subclass of Bank Account, which of the following code fragments are valid in Java?

a. Bank Account account = new Savings Account();

b. Savings Account account2 = new Bank Account();

c. Bank Account account = null;

d. Savings Account account2 = account;

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Assuming savings account is a subclass of bank account
Reference No:- TGS02630993

Expected delivery within 24 Hours