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
0
Hlo...
✔️HERE IS UR ANSWER...
✴️II and III only
HOPE IT'S HELP YOU..
THANKS☺️☺️☺️
✔️HERE IS UR ANSWER...
✴️II and III only
HOPE IT'S HELP YOU..
THANKS☺️☺️☺️
Answered by
1
Answer:
I and II only
Explanation:
Similar questions