Consider the following code: public class ClassA { public void m1() {} public void m2(int i) {} public void m3(int i) {} public static void m4(int…
Consider the following code:
public class ClassA {
public void m1() {}
public void m2(int i) {}
public void m3(int i) {}
public static void m4(int i) {}
}
public class ClassB extends ClassA {
public static void m1(int i) {}
public void m2(int i) {}
public void m3(String s) {}
public static void m4(int i) {}
}
Mention which of the methods overload, override and hide superclass methods. What about the remaining method?
From the BB Assistant Programmer February 2023 – Written (BIBM) exam, question 31 of 37.
More from this paper
- Previous: Suppose that we have a relational database with the following table. Underlined one represent primary key Movies (mid, title, year) People…
- Next: Give an adjacency list representation for a complete binary tree on 7 vertices. Give an equivalent adjacency matrix representation. Assume…
- All questions in BB Assistant Programmer February 2023 – Written (BIBM)