Computer Science, asked by kadamsidharth8, 7 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
7

Answer:

I can't understand but I will try later

Explanation:

just follow Me

Brainliest me

Similar questions