Question #192387

2. Given the following code, where does the method overloading happen? 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. the superclass

B. the Parent class

C. the subclass

D. both the Parent and Child class

E. both the superclass and subclass


Expert's answer

C. the subclass


LATEST TUTORIALS
APPROVED BY CLIENTS