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
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