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
Romashka [77]
1 year ago
3

declaring a member as in the base class provides access to that member in the derived classes but not to anyone else.

Computers and Technology
1 answer:
trasher [3.6K]1 year ago
3 0

Declaring a member as protected in the base class provides access to that member in the derived classes but not to anyone else.

Base class and derived classes are concepts of inheritance in the paradigm of Object Oriented Programming. Inheritance is the process in which a new class (called derived class) is created from an existing class (called base class).

When a drive class is created from the base class, it has access to some members of the base class. There are three types of access specifiers to declare members in the base class in order to provide their access in the derived classes.

The first is declaring a member as private. Private members of the base class cannot be accessed by anyone, even not by the derived classes. The second is declaring the base class members as public. Public members can be accessed by anybody including derived classes. The third type is declaring members as protected. Protected members of the base class have accessibility only in derived classes.

Thus, when a member is declared as protected in the base class, it gives access to that member in the derived classes but not to anyone else.

You can learn more about access specifier at

brainly.com/question/28289695

#SPJ4

You might be interested in
Write the definition of a method printGrade, which has a char parameter and returns nothing.The method prints on a line by itsel
o-na [289]

Answer:

The answer to this question can be given as:

Method Definition:

void printGrade(char x) //declare method with parameter.  

{

 

//method body

System.out.println("Grade: "+x);

 //print value in new line.

}

Explanation:

In the above method definition, we define a method that's name is already given in the question that is printGrade. This method does not return any value because its return type is void. In this method, we pass a char variable as a parameter. Then we define the method body in the method body we print the value of the char variable in the new line. To print the value in the new line we use the println function in java.

5 0
3 years ago
Briefly define "address space" and discuss its major tradeoffs (advantages/costs). What problem is it addressing?
vladimir1956 [14]

Answer:

The address space basically define the memory allocation for all the computational entity. It is basically define in the specific range in the memory which is available in the program.

The memory can be allocated in the resources like file, devices and server. In the address space the memory can be used either virtually or physically for executing the given instruction and storing the data in the system.

The main advantages and costs of the address space are that:

  • The simplifies the data migration and also the process migration the system.
  • It is easy to implement the zero cop.
  • It basically eliminate the copying of the data from the memory.  
  • The cost increase as the traditional operation system used a individual address space in the each processing.  

The small organization majorly face the problem of addressing and it also reduce the stability of the company and organization.

6 0
3 years ago
When does a kernel panic occur? A)when the incorrect serial number is entered during software installation when Dynamic-Ling Lib
vladimir1956 [14]
A Kernel panic can<span> also be caused by errors originating outside kernel space. For example, many Unix OSes panic if the init process, which runs in userspace, terminates.</span>
8 0
4 years ago
Read 2 more answers
Write a c program to print the sum of cubes of odd numbers between 1 to 100​
garik1379 [7]

Answer:

   int sum = 0;

   for (int i = 1; i < 100; i += 2) {

       sum += i * i;

   }

   printf("The sum of cubes is %d", sum);

   /* Prints: The sum of cubes is 166650 */

Explanation:

If 1 should be excluded, let the for loop start at 3.

4 0
3 years ago
When parallel parking, you should select a space that is __________ as long as your car.
Shtirlitz [24]

that is Equally as long as your car


7 0
4 years ago
Other questions:
  • An important factor to consider when purchasing new software is to investigate how much storage the application and associated d
    8·1 answer
  • The internet is a worldwide assembly of computer
    11·1 answer
  • A SmartArt graphic consists of two parts: the SmartArt graphic itself and a(n) ____ pane.
    5·1 answer
  • The Internet has its roots in a network that became functional in 1969, linking scientific and academic researchers across the U
    10·1 answer
  • An oligopoly is a unique market structure. Which of the following is NOT necessary to have a oligopolistic market structure?
    10·1 answer
  • Write the code to create a variable score and assign it the value 0?​
    6·1 answer
  • May someone help me with the this question pls , The governor of a state wants to inform the people about a change in the tax po
    9·1 answer
  • Which of the following devices can be connected to a network? Check all of the boxes that apply.
    9·1 answer
  • Based on three scores that the user inputs, display the average of the score and the letter grade that is assigned fort he test
    5·1 answer
  • 5. What are some situations where you might find it useful to use the “!” symbol in a program?
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!