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
bearhunter [10]
3 years ago
15

Where might the Null Object pattern be useful?

Computers and Technology
1 answer:
Tanzania [10]3 years ago
5 0

Answer:  Null Object pattern be useful when the absence of an object can be encapsulated by other alternatives which does not have any have any effect.

Explanation:

public interface Rectangle {

double area();

   double surfaceare();

   boolean isNull();

}

In the code above we have a function for null object. So in the absence of an object we have encapsulated with a method of null which does not do anything. It simplifies the use of dependencies that can be undefined.

In case of collaborator the NULL object pattern makes use of the existing collaboration instead of defining a new one.

It also enable to abstract the handling of null objects from the client so that internal details of the program are not know to outsiders.

You might be interested in
An Administrator is preparing to deploy change set into the production environment. Until the deployment is complete, only user
ivann1987 [24]

Answer:

Assign all other users a custom profile with reading access to all objects revoked and add a custom homepage message

Explanation:

Until the deployment is complete, no user other than the user with System administrator profile should be allowed to access data in the production system.

In such a case, the administrator can assign all other users a custom profile with reading access to all objects revoked and add a custom homepage message.

8 0
4 years ago
Regularly tuning up a computer can assist with keeping it running at peak speed.
Lady_Fox [76]
The answer to your question, is true
hope this helps :D
3 0
3 years ago
What is the purpose of a system call in an operating system?
ikadub [295]

Answer:

 The system call is the programming way for executing the requesting the services in the program from kernel in the particular operating system.

The main purpose of the system call in the operating system is that it basically provide the different types of the services to the users by using the API (Application program interface) system.

It basically provide the interface for allowing the users to request the services between the operating system and a processor. In the linux there are basically three types of system call are as follows:

  • Fork
  • Waitpid
  • Exist

6 0
3 years ago
Who is responsible for protecting the environment? a. Government b. Employers c. Employees d. Everyone Please select the best an
Veronika [31]

Answer:

A

Explanation:

Hope I helped

7 0
3 years ago
Read 2 more answers
Jerry suspects that information about his Internet usage was sent to external websites without his knowledge. He is wary about t
balu736 [363]
I would say some kind of anti cookie software. Cookies are what the websites store to track info about you and your preferences. If you blocked their data collectors or turned of cookies for websites, you would likely stop getting ads and newsletters.
3 0
3 years ago
Other questions:
  • Candace opened an email from a person she didn't know and clicked on a pop-up in the email that installed a virus on her compute
    8·2 answers
  • Qu'est-ce qui motive le choix d'une autre?
    7·1 answer
  • What characteristics need to be exhibited by an organisation to improve its software process?
    7·1 answer
  • Collaboration, listening, and negotiating are considered _____ skills.
    5·1 answer
  • What is the most likely result of making a plan for life after high school
    14·1 answer
  • Write a function named "higher_lower" that takes an int as a parameter and returns "higher" if 14 is greater than the input and
    11·1 answer
  • Look at the trend in the US labor force participation rate. If increasing the number of women and men in the labor force can be
    13·1 answer
  • In order to implement the classic DoS flood attack, the attacker must generate a sufficiently large volume of packets to exceed
    11·1 answer
  • Task 2
    6·1 answer
  • Type the correct answer in the box. Spell all words correctly. Which language should you use to add functionality to web pages?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!