Suppose that a class A is defined with two variables name1, name2 and three methods with arguments int f1(int), void f2(String) and String…

Suppose that a class A is defined with two variables name1, name2 and three methods with arguments int f1(int), void f2(String) and String f3(String, int). Then choose which one of the following cannot be asked in a class B which is extended from A?

  1. a) int f1(int)
  2. b) int f1(String)
  3. c) int f2(String)
  4. d) int f2(int)

From the Rupali Bank Assistant Network Engineer 2021 – Written (CTI) exam, question 25 of 46.

More from this paper