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
2. A data catalog identifies all of the following, except: a. Attribute data type b. Attribute range of values c. Attribute cons
alexandr1967 [171]

Answer:

c. Attribute constraints

Explanation:

A data catalog identifies all of the following, except: "Attribute constraints"

The above statement is TRUE because a Data Catalog, a metadata management service, operates by searching for key data, understand and manage data for usefulness.

Data Catalog checks on the BigQuery datasets, tables, and views and checks both technical and business metadata by identifying the following attributes:

1. Data type

2. Range of values

3. Value for Instructor ID

5 0
3 years ago
Question 1 (2 points)
Lyrx [107]

Answer:

.

Explanation:

.

7 0
3 years ago
What the difference between a samsung and a android​
Vesnalui [34]

Explanation:

Every Samsung is an example of an Android but not every android is an example of a Samsung. Androids are all phones or devices that are not made by Apple.

3 0
4 years ago
Bella wants to be a chemical engineer and work for an oil company. Which best describes her career goals?
Gemiola [76]
<span>She wants to work in natural resources.</span>
6 0
3 years ago
Read 2 more answers
In what way, if any, are the Internet and the World Wide Web related to each other?
8_murik_8 [283]

Answer:

the world wide web is the substitute of the internet because the internet is connected to far for the world wide web

meaning of this : the world wide web (www) is the caption that you use to search and the internet is the one that connects to the www and is what is used to get on the www

-hope this helps ❤

4 0
3 years ago
Other questions:
  • Phoebe has to give a permission about recycling. Where should she look while presenting?
    11·1 answer
  • What is a correlation and how does it relate to inferential error?
    5·1 answer
  • What happens when the programmer tries to access an array cell whose index is greater than or equal to its logical size?
    7·1 answer
  • A chief Information Security Officer (CISO) is performing a BIA for the organization in case of a natural disaster. Which of the
    8·1 answer
  • It is considered good practice to save a presentation before printing it. true false
    13·1 answer
  • What is the by stander effect
    9·1 answer
  • What are examples of templates the Input Mask Wizard offers? Check all that apply.
    12·2 answers
  • Please help.........​
    13·1 answer
  • What is the full form of RPM in computer ​
    10·2 answers
  • Technological advancements during the industrial age provided Americans with:
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!