Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

Prepare a short profile of Lucy Clifford ?

Answered: 1 week ago

Question

Prepare a short profile of Rosa parks?

Answered: 1 week ago

Question

Prepare a short profile of victor marie hugo ?

Answered: 1 week ago

Question

5 The mechanics of the circular flow model.

Answered: 1 week ago

Question

1 The difference between a command system and a market system.

Answered: 1 week ago

Question

4 How the market system adjusts to change and promotes progress.

Answered: 1 week ago