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
Anna007 [38]
3 years ago
6

Determine the best access modifier for each of the following situations: a. A class Employee records the name, address, salary,

and phone number. b. An adding method inside of a class BasicMath.
Computers and Technology
1 answer:
Lorico [155]3 years ago
4 0

Answer:

a. Protected

b. Public

Explanation:

There are four acess modifier in Java.

Default: Acessible only within the same package.

Public: Can be acessed by any class.

Private: Acessible only within the class.

For example, you have a class employee and a private method. This method can only be accessed by an object that is an instance of an employee.

Protected: Used in classes that extend each other. For example, a class of employees would extend employee.

So:

a. A class Employee records the name, address, salary, and phone number.

The best acesses modifier is protected. A class may extended employee but have the same arguments(name, adress, salary, phone number), so it should also have acess to the method.

b. An adding method inside of a class BasicMath.

This method can be used in a variety of packages and projects and classes... and there is no important information regarding security. So the best method is public.

You might be interested in
What do file extensions tell you about a particular file? Why can a file have only one type of file extension?
MrMuchimi
It tells u what kind of file it is and also if it were to have two extensions it would interfere and cause it not to work
6 0
3 years ago
How is energy expended in active transport​
professor190 [17]

Here's the biology explanation:

Most of the energy expended by a cell in active transport is used to pump ions out of the cell across the plasma membrane.

7 0
4 years ago
After execution of the following code, what will be the value of input_value if the value 0 is entered at the keyboard at run ti
katen-ka-za [31]
Cin >> input_value;
if (input_value > 5)
input_value = input_value + 5;
else if (input_value > 2)
input_value = input_value + 10;
else
input_value = input_value + 15;

The right answer is : 15
7 0
4 years ago
Identify the statement below that is not true of the 2013 COSO Internal Control updated framework. a. It provides users with mor
gladu [14]

Answer:

C. It adds many new examples to clarify the framework concepts.

Explanation:

COSO is short for Committee of Sponsoring Organizations of the TreadWay Commission.The original framework released by COSO was the Internal Control-Integrated Framework, published in the year 1992. The purpose of this framework is to help in establishing effective internal control in businesses.

The updated framework was published in the year 2013. The purpose of this updated frame work includes;

  • helping businesses in establishing an effective and efficient internal control system that would help them in the implementation and documentation of issues affecting their businesses.

  • It also provides users with more precise guidelines which does not take away from the original framework, but rather builds on it.
6 0
3 years ago
Match each career to its various job roles. digital media coordinator digital media specialist photographer sound producer creat
Morgarella [4.7K]

Answer:

1. Digital media coordinator.

2. Sound producer.

3. Digital media specialist.

4. Photographer.

Explanation:

1. Digital media coordinator: he or she is saddled with the responsibility of creating audio and video content for use on websites.

2. Sound producer: he or she records and modifies sound and music for video games and movies through the use of specialized software application such as fruity loops.

3. Digital media specialist: he or she is saddled with the responsibility of posting content such as news, pictures, graphic designs, etc., on the Internet.

4. Photographer: he or she captures images using a camera or camcorder and edits the images using a graphic design software such as Adobe Photoshop.

3 0
3 years ago
Other questions:
  • Write about the future of Reliability and Security in Software Engineering.
    13·1 answer
  • In the MARS Marketing Management Simulation, the results of your marketing mix decisions:
    9·1 answer
  • In general, what are reasons that someone would choose to use lossy compression? Write a brief response below including at least
    10·1 answer
  • Inaccurate __________ is the number-one reason why many small businesses go bankrupt.
    5·1 answer
  • Juan created new video game for his coding course. What is one way he can explain his code in everyday language?
    7·1 answer
  • Identify at least five different Arts, A/V Technology, and Communications careers that you could pursue in your home state, and
    11·1 answer
  • What is the most vulnerable information that should be protected to prevent unauthorized access to your online files and records
    8·1 answer
  • Edhesive assignment 1 movie ratings
    9·1 answer
  • Which computer are used by mobile employees such as meter readers.​
    6·2 answers
  • Online banking is a convenience that mostly affects which area of your life?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!