Computer Science, asked by kadamsidharth8, 6 months ago

Qv

Consider the following piece of code in Java.
class 3
protected int method (int a, int b)
return 0:
>
Which of the following method(s) is/are declaration is/are not valid in a class that extends class B?
/
a. public int method (int a. int b) {
return 0;
b. private int method (int a, int b) !
return 0;
3
c. static protected int method (int a, int b) {
return 0;
2
d. public short method (int a, int b) {
return 0;​

Answers

Answered by Anonymous
9

Answer:

I can't understand pls explain me

Explanation:

follow Me

Brainliest me

Similar questions