1. Given the following code, which method is an example of method overloading? Please select "A, B, C, D, or E" as correct option.
class Parent
{
public int show() { ... }
public int showIt(int x) { ... }
public int showMe() { ... }
public double showHow() { ... }
public void showAgain() { ... }
}
class Child extends Parent
{
public int show(int x) { ... }
public int showIt(int x) { ... }
public int showMe() { ... }
public int showHow() { ... }
public double showHow() { ... }
}
A. show()
B. showIt()
C. showMe()
D. showHow()
E. showAgain()
A. show()
Comments
Leave a comment