1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
777dan777 [17]
3 years ago
5

Suppose you design a banking application. The class CheckingAccount already exists and implements interface Account. Another cla

ss that implements the Account interface is CreditAccount. When the user calls creditAccount.withdraw(amount) it actually makes a loan from the bank. Now you have to write the class OverdraftCheckingAccount, that also implements Account and that provides overdraft protection, meaning that if overdraftCheckingAccount.withdraw(amount) brings the balance below 0, it will actually withdraw the difference from a CreditAccount linked to the OverdraftCheckingAccount object. What design pattern is appropriate in this case for implementing the OverdraftCheckingAccount class
Computers and Technology
1 answer:
Leona [35]3 years ago
6 0

Answer:

Strategy

Explanation:

The strategic design pattern is defined as the behavioral design pattern that enables the selecting of a algorithm for the runtime. Here the code receives a run-time instructions regarding the family of the algorithms to be used.

In the context, the strategic pattern is used for the application for implementing OverdraftCheckingAccount class. And the main aspect of this strategic pattern  is the reusability of the code. It is behavioral pattern.

You might be interested in
The research department of Mark ‘2’ Limited in a recent stakeholder meeting argued that socially responsible businesses win the
Mama L [17]

The organization’s social responsibilities to its key stakeholders, the environment, and the community are:

  • The issue of Organizational governance.
  • The issue of Human rights.
  • The issue of Labor practices.
  • The issue of Environment.
  • The issue of Fair operating practices.
  • The issue of  Consumer issues.

<h3>What is an organization's social responsibilities to the environment and the community?</h3>

Social responsibility is known to be a term that is often used  in businesses, and it is often used in line with the maximizing of shareholder value.

Note that this is one that entails that firms should act in a manner that is said to often benefits society. Socially responsible companies should use policies that tend to boast or promote the well-being of society and that of the environment.

Therefore, The organization’s social responsibilities to its key stakeholders, the environment, and the community are:

  • The issue of Organizational governance.
  • The issue of Human rights.
  • The issue of Labor practices.
  • The issue of Environment.
  • The issue of Fair operating practices.
  • The issue of  Consumer issues.

Learn more about social responsibilities from

brainly.com/question/12951431

#SPJ1

7 0
2 years ago
What is a system of computers that are joined together and connect to peripheral devices and can’t be accessed from home
harina [27]
<span>What is a system of computers that are joined together and connect to peripheral devices and can’t be accessed from home = LAN for Local Area Network, unless it's connected to the internet and you allow VPN/RAS system access you will not be able to connect to a LAN remotely.</span>
7 0
4 years ago
____ was developed to enable web authors to implement interactive content on web sites, such as to animate an item, or pop up a
Gnesinka [82]
HTML (Hypertext Markup Language) was developed to enable web authors to implement interactive content on web sites, such as to animate an item, or pop up a window to point to an item. HTML is a standardized system, a program language for creating web sites that t<span>ells the Web browser how to display a Web page's words and images for the user.</span> It is the fundamental language used to develop webpages.


4 0
3 years ago
Suppose a system administrator at sls happened to read the details of this case. what steps should he or she take to improve the
kvv77 [185]
He should add more security applications to the software and inform the company to not tell any details.
6 0
4 years ago
A workstation’s user prefers KDE over GNOME. Which login manager can this user run to ensure direct login to KDE?
Mice21 [21]

Answer:

B. KDM

Explanation:

The KDE display manager (KDM) was developed for the KDE desktop environment, while the GDM is a display manager for the gnome desktop environment.

The XDM display manager is used by the Linux operating system when a specific desktop environment is not chosen.

3 0
4 years ago
Other questions:
  • When does a kernel panic occur?
    12·2 answers
  • What does the Chart Elements option allow you to change? A. Values B. Color C. Style D. Axis titles
    13·1 answer
  • Write an algorithm to determine a students final grade and indicate whether it is passing or failing .the final grade is calcula
    12·1 answer
  • The operating system’s application programming interface (API) provides software developers with tools they use to build applica
    5·1 answer
  • Linda is the education manager for a national coding service company. Once a month she holds a videoconference with all her codi
    14·1 answer
  • How we know that how many domain exist in window server 2012?
    14·1 answer
  • When classified data is sent over an unclassified network, what is this incident called?
    5·1 answer
  • Sarah is a detail-oriented programmer. While testing her program, what other skill would she have to apply in order to detect al
    11·1 answer
  • Using C++
    13·1 answer
  • Does the wireless signal between the cell phones require matter to travel from one phone to another?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!