Computers and Technology

Analyze the following code: public class test {__public static void main(string[] args) { b = new b(); .m(5); .out. println("i is " + b. i); }}class a {__int i; __public void m(int i) {.i = i; }}class b extends a {__public void m(string s) {}}a. the program has a compilation error, because m is overridden with a different signature in b. b. the program has a compilation error, because b. m(5) cannot be invoked since the method m(int) is hidden in b. c. the program has a runtime error on b. i, because i is not accessible from b. d. the method m is not overridden in b. b inherits the method m from a and defines an overloaded method m in b.

answer
Answers: 1

Similar questions

Do you know the correct answer?
Analyze the following code: public class test {__public static void main(string[] args) { b = new b(...

Questions in other subjects: