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
Nuetrik [128]
3 years ago
14

For the questions below, use the following partial class definitions : public class A1 { public int x; private int y; protected

int z; ... } public class A2 extends A1 { protected int a; private int b; ... } public class A3 extends A2 { private int q; ... } Which of the following lists of instance data are accessible in class A2?
1. a, b
2. x, y, z, a, b
3. x, z, a, b
4. x, y, z, a
5. z, a, b
Computers and Technology
1 answer:
natulia [17]3 years ago
4 0

Answer:

Option 3 i.e., x, z, a, b is correct.

Explanation:

In the above program which is in the Java Programming Language, there is the class with public access modifier and inside the class, we declare three integer data type variable with different access modifier, first variable 'x' with public modifier then, second variable 'y' with private modifier and third variable with protected modifier.

Then, they inherit the 'A1' class in the new class 'A2' inside which we declare two integer data type variable, the first variable is 'a' with protected modifier and second variable 'b' with private modifier.

So, you can clearly see that we cannot access the private variable of the parent class but you can access the public variable outside the class as well as protected also but in some conditions, and in other extended class we can access both public, private and protected variable through the class 'A2'. That's why we cannot access the private member of the parent class.

You might be interested in
Most search engines provide specific pages on which you can search for____ and
vazorg [7]

Answer: c

Explanation: a

7 0
3 years ago
Read 2 more answers
In the welding operations of a bicycle manufacturer, a bike frame has a long flow time. The set up for the bike frame is a 7 hou
mestny [16]

Answer:

Bike Frame Flow Time

The value-added percentage of the flow time for this bike frame is:

= 46.

Explanation:

a) Data and Calculations:

Bike Frame Flow Time:

Setup time = 7 hours

Processing time = 6 hours

Storage time = 7 hours

Flow time of the bike frame = 13 hours (7 + 6)

Value-added percentage of the flow time for this bike frame = 6/13 * 100

= 46%

b) Flow time represents the amount of time a bicycle frame spends in the manufacturing process from setup to end.  It is called the total processing time. Unless there is one path through the process, the flow time equals the length of the longest process path.  The storage time is not included in the flow time since it is not a manufacturing process.

8 0
3 years ago
What did early computers use to store each bit?
Damm [24]

Answer:

A vacuum tube

4 0
4 years ago
Read 2 more answers
Why is Net WPM a better formula than Gross WPM to calculate typing speed?
sergeinik [125]
<span>Net speed can be calculated by deducting errors in gross wpm which is more accurate </span>
7 0
3 years ago
Read 2 more answers
Which feature of spreadsheet software can display numerical data in a visually appealing and easily understood format
Bad White [126]
A table maker makes visually appealing tables such as line graphs, bar graphs, venn diagrams on a spreadsheet software. 
8 0
3 years ago
Read 2 more answers
Other questions:
  • Create a class named BaseballGame that contains data fields for two team names and scores for each team in each of nine innings.
    12·1 answer
  • How many buttons does a gamecube controller have?
    7·1 answer
  • Programming challenge description: Given a string comprising just of the characters (,),{,},[,] determine if it is well-formed o
    13·1 answer
  • PLZZZ HELP!!! I’ll give brainliest
    12·1 answer
  • Favorite color should it be stored why?or why not?<br>​
    6·1 answer
  • Write a program to enter length of a square and print area of square.<br>(class 8)​
    9·2 answers
  • A single-user/single-tasking operating system allows only one user to perform one task at a time. A real-time operating system g
    13·1 answer
  • Where can a client identify the instant deposit options for their QuickBooks Payments account?
    5·1 answer
  • B) What is system software? Write its importance.​
    13·1 answer
  • 84 104 101 32 97 110 115 119 101 114 32 105 115 32 53 48 33 There's a way to make this meaningful; find it!
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!