Computer Science, asked by gshailesh97, 1 year ago

Consider the following class declaration.

public class Dog extends Pet {
private String b;
public Dog (String color, int weight, String breed) {
/* Missing Code */
}
}


The following code segments have been proposed:

I. super(color, weight);
b = breed;


II. super(color, weight);
this.b = breed;


III. this.breed = breed;
super(color, weight);

options are:

II only
II and III only
III only
I and II only
I only

Answers

Answered by Anonymous
0
Hlo...

✔️HERE IS UR ANSWER...

✴️II and III only


HOPE IT'S HELP YOU..

THANKS☺️☺️☺️
Answered by geethajayaraj
1

Answer:

I and II only

Explanation:

Similar questions