Question: /* JAVA */ InvestWell Bank is a private bank that offers deposit, withdrawal, and loan facilities for its customers. The customers hold an account with
/* JAVA */
InvestWell Bank is a private bank that offers deposit, withdrawal, and loan facilities for its customers. The customers hold an account with the bank which can be of three types namely Savings, Fixed deposits, and Loans. InvestWell Bank has a team working on the automation of its service for accurate and smooth functioning. The design team has identified few of the classes and its memebers.
1) 'Date' class containing day, month and year as data members in a package name 'date'
2) Account' class containing account number, customer name, balance, and date of account opening as data members in a package named 'account'. The data member 'date of account opening' needs to be of type 'Date' present in 'date' package.
Considering the scenario described above, what should be the access specifier of the 'Date' class so that it is in 'Account' class?
a) protected
b) public
c) default
d) private
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
