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
olasank [31]
3 years ago
11

Consider the following class definitions. public class BClass { private int x; public void set(int a) { x = a; } public void pri

nt(){ } } public class DClass extends BClass { private int y; public void set(int a, int b) { //Postcondition: x = a; y = b; } public void print(){ } } Which of the following is the correct definition of the method set of the class DClass? (i) public void set(int a, int b) { super.set(a); y = b; } (ii) public void set(int a, int b) { x = a; y = b; }
Computers and Technology
1 answer:
Stella [2.4K]3 years ago
7 0

Answer:

The answer to the given question is the option "(i)".

Explanation:

In this question, the correct option is the "(i)" because In this method definition we use the super keyword. It refers to the parent's class. In this method, we use the superclass to call the above (parent) class method. and if we choose the option (ii), It will not call the parent class. That's why we use the option (i) which is correct.

You might be interested in
In terms of technolagy, soft wear is defined as
tia_tia [17]

Answer:

the programs and other operating information used by a computer.

Explanation:

4 0
3 years ago
A _____ is a way for students to keep track of information during research
malfutka [58]

Answer: Word

Explanation:  Word . Because in word we can writer the notes and where we can also search and get more information

6 0
4 years ago
Assume that the classes listed in the Java Quick Reference have been imported where appropriate.
Georgia [21]

rcre2nvijrnv

u1bcihdebc

nn

8 0
4 years ago
A programmer completes the user manual for a video game she has developed and realizes she has reversed the roles of goats and s
lesya692 [45]

Answer:

Option C is correct.

Explanation:

The developer finalizes its client guide for such a pc game she might have created as well as discovers that she has changed the positions of sheep and goats across the whole article. Recognize the aim of a developer to modify both events of "goats" to "sheep" as well as all events of "sheep" to "goats." The developer will use an assumption that perhaps the term "foxes" would not exist anywhere else in the text.

The foregoing algorithms should be employed that achieve the aim of the author, which is to convert certain events of "goats" to "foxes." En, convert all events of "sheep" to "goats." Then, converts all events of "foxes" to "sheep."

4 0
3 years ago
What is the meaning of the term plot?<br>A. the final outcome of the story​
Amanda [17]

Answer:

The meaning of the term plot is the plan, scheme, or main story of a literary or dramatic work, as a play, novel, or short story.

Explanation:

5 0
3 years ago
Other questions:
  • After reading passage “the incredible machine” why do you think the article has been titled so?
    13·1 answer
  • What is the point of completing a value assessment while searching for a career
    11·1 answer
  • Print 'userNum1 is negative" if userNum1 is less than 0. End with newline Convert userNum2 to 0 if userNum2 is greater than 9. O
    8·1 answer
  • For anyone who plays warzone, do you think the hdr has earned its spot back after the spr nerf? Be completely honest plz.​
    8·1 answer
  • What was originally called "shareware"
    9·2 answers
  • For a string s ∈ {0, 1} let denote the number represented by in the binary * s2 s numeral system. For example 1110 in binary has
    10·1 answer
  • Select the true statement about HTML. HTML is a language that is used to create Web pages. HTML tags tell a web browser when to
    7·2 answers
  • Write the output of the following program:
    8·1 answer
  • Which will touch the ground first an elephant or a rock?
    9·2 answers
  • 4. Return the card number, first name, last name, and average late fee of each customer. Name this column as "Fee".
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!