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
Juliette [100K]
3 years ago
6

Assume the Student and Employee classes each extend the Person class. The Student class overrides the getMoney method in the Per

son class. Consider the following code: Person p1, p2, p3; int m1, m2, m3; p1 = new Person(); m1 = p1.getMoney(); // assignment 1 p2 = new Student(); m2 = p2.getMoney(); // assignment 2 p3 = new Employee(); m3 = p3.getMoney(); // assignment 3 The reference to getMoney in assignment 3 is to the ________ class.
Computers and Technology
1 answer:
SSSSS [86.1K]3 years ago
6 0

Answer:

Person p1, p2, p3;

int m1, m2, m3;

p1 = new Person();

// assignment 1

m1 = p1.getMoney();

p2 = new Student();

// assignment 2

m2 = p2.getMoney();

p3 = new Employee();

// assignment 3

m3 = p3.getMoney();

//////////////////////////////////////////////////////////////////////////////////////////////

The reference to getMoney in assignment 3 is to the <em>Person</em> class.

Explanation:

Since Employee class didn't override Person class's getMoney() method, calling p3 with getMoney() will call Base class's (Person) getMoney() method.

You might be interested in
Some designer suggest that speech recognition should be used in tale phone menu system. This will allow users to interact with t
Sergio [31]

Answer:

My two arguments against the proposal are based on physical side effects and background noise interference.

Explanation:

To start with physical side effects, the use of speech recognition technology might make users experience physical discomfort. This is due to the fact that users who interact with the system by speaking for a long period would experience dry mouth, temporary loss of voice, vocal problems and muscle fatigue. In addition, the fact that users would always speak in an unnatural way to make the system interpret commands effectively could lead to voice strain.  

Also, users need to be in a quiet environment before they can get the best out of speech recognition technology. This is because background noise can interfere with commands and create a mix-up which the system cannot interpret. In other words, when an environment is noisy, speech recognition technology would find it difficult to differentiate between users voice and background noise.

4 0
3 years ago
A three-character code is to be assigned only if it cannot be further subdivided, and a code is __________ if it has not been co
pav-90 [236]

Answer:

Invalid are the correct answer to the following statement.

Explanation:

The following statement is correct because the following code is invalid if the code is not summarized properly according to the requirement of the following code in which the seventh character extension is included, if the three-character code is not be subdivided any more then, the following code is invalid.

5 0
4 years ago
A(n) ____________________ is an assessment to determine the characteristics of hardware or software needed to meet a user's job
vampirchik [111]
<span>An user requirement is an assessment to determine the characteristics of hardware or software needed to meet a user's job requirements.
</span>The user requirements include the basic Hardware<span><span> (Central processing unit (CPU), memory, storage space, a keyboard, mouse, monitor..)</span>, hardware Maintenance and upgrades, software and software upgrades, data and information, technical support...
</span>

7 0
3 years ago
Cell address $A$4 in a formula means it is a ___________. *
kolezko [41]

Answer:

The answer to this question is given below in the explanation section

Explanation:

Cell address $A$4 in a formula means it is an Absolute Cell Reference.

Absolute cell reference does not change when you copy the formula to other cells. when the $ symbol added in the front of the column and row, makes it absolute. It stops the row and column numbers from changing when you copy to other cells. The given $A$4 cell address contains the value in column A and row 4. It does not change the value when you copy the formula that has mentioned ($A$4) into other cells. For example, if you have value 10 at row 4 and column A. Then you multiple column B with A4 cell value and you want that A4 value will not change while copying formula from C1 to C10. You can use in column C1 as =B1*$A$4. Then you copy the formula to cell 10. The value of $A$4 will not change.

while the other options are not correct because:

In the relative cell reference values get changed in the formula, while in the mixed cell reference you can either locked the row or column while the row or column changes when the formula is copied respectively.

7 0
3 years ago
In what situation would a GUI be especially useful?
tia_tia [17]
To make your programs more attractive and user friendly.
4 0
4 years ago
Other questions:
  • Which number expresses 6.72 as a fraction in simplest form?<br>​
    11·1 answer
  • What is an activity that can help you enhance the appearance of your computer’s desktop?
    12·2 answers
  • This program will read integers from a file and find results from these integers. Open the file, test to make sure the file open
    12·1 answer
  • Write the definition of a function printAttitude , which hasan int parameter and returns nothing. The function prints amessage t
    13·1 answer
  • Most of us have been using elements of Web 2.0 without even realizing it.<br> True<br> False
    6·1 answer
  • What is SoC? how is it different from CPU?
    14·1 answer
  • What is the largest possible value that the variable x can have after the code segment executes? 17 17 A 14 14 B 11 11 C 4
    8·1 answer
  • HELLLLLLLLLLLLLLLLLLLLP PLSSSSSSSSSSS HELLLLLLLLLP
    10·1 answer
  • Write a program that reads numbers from the user until a blank line is entered. Your
    15·1 answer
  • A series of dialog boxes that guides you through creation of a form or report is called a ____.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!