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
Anestetic [448]
4 years ago
5

When applying strict “Private access” level to a component. Which services should the designer provide in its class to allow the

object to communicate with the outside world? What should be the access level of these services?
Computers and Technology
1 answer:
Tju [1.3M]4 years ago
5 0

Answer:

public accessor methods

Explanation:

When applying strict “Private access” level to a component the designer should provide public accessor methods in its class to allow the object to communicate with the outside world. The access level of these services must be public so that they can be accessed by other classes and objects of the outside world.

Below is an example of such a class design in java :-

class MyClass {

private int num; //private class component

 

public int getNum(){ //public accessor method to allow the object to        communicate with the outside world

 return num;

}

}

You might be interested in
You have just installed a new sound card in your system, and Windows says the card installed with no errors. When you plug up th
Y_Kistochka [10]

Answer:

1. Volume check

2. Manage Device

Explanation:

1. Verify the volume is turned up in Windows and on the speakers. This can be done easily by going to the volume control icon on the computer.

2. Check Device Manager to see if the sound card is recognized and has no errors. This can be done by navigating thus:

My PC (Right click) > Manage > Device manger

Cheers

4 0
4 years ago
Discuss any five barries of integrating ict tools in education​
yawa3891 [41]

Answer:

lack of computer, lack of quality software, lack of time, lack of technical programs and lack of teachers

3 0
3 years ago
What kind of energy does a car possess when it is raised on a lift​
julia-pushkina [17]
Gravitational potential energy
7 0
4 years ago
A user can set up a <br> and invite <br> to participate in a discussion topic.
SVEN [57.7K]
Wait what I don’t get it
8 0
3 years ago
Read 2 more answers
A class is designed with two public attributes: attributeOne and attributeTwo. attributeOne is an integer data type while attrib
nexus9112 [7]

Answer:

B. void setAttributeOne(int newAttributeOne)

{

attributeOne = newAttributeOne

}

Explanation:

The class has two public attributes : int attributeOne and String attributeTwo.

The appropriate setters for these attributes will be as follows:

void setAttributeOne(int newAttributeOne)

{

attributeOne = newAttributeOne ;

}

void setAttributeTwo(int newAttributeTwo)

{

attributeTwo = newAttributeTwo;

}

The highlighted code corresponds to option B among the given options. So option B is the correct setter for attributeOne.

4 0
4 years ago
Other questions:
  • Which applicants would be best suited for which jobs based on educational and training? Boris is best suited to be an Electricia
    11·2 answers
  • The process of debt servicing involves paying off ___________.
    13·1 answer
  • PLEASE HELP ITS EASY I JUST BIG STOOPYHEAD!!!!
    5·2 answers
  • Question 1<br> a node is.<br> •a sever<br> A Cell Phone<br> A Laptop<br> a device on a network
    13·1 answer
  • PDA is an acronym for professional digital aid. <br><br> True <br><br> False
    10·1 answer
  • Special variables that hold copies of function arguments are called _________.
    11·1 answer
  • What does the format painter button do?
    13·1 answer
  • Selling R frog for 50 r-obux on r-oblox!!! dont answer if u not gonna buy it
    15·2 answers
  • Explain the five generations of computer
    12·2 answers
  • What are two benefits of defining a function?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!