If classes C1 and C2 both implement an interface Cint, which has a method whichIsIt, and if C1 c = new C1(); is performed at one point of the program, then a later instruction
c.whichIsIt(); will invoke the whichIsIt method defined in C1.
Correct Answer:
Verified
Q9: A polymorphic reference can refer to different
Q10: Code Example Ch 10-1
An int array
Q11: An interface reference can refer to any
Q12: A variable declared to be of one
Q13: The spinner GUI control can allow the
Q15: The type of the reference, not the
Q16: Code Example Ch 10-1
An int array
Q17: What does the following code do? Assume
Q18: A method's parameter can be polymorphic, giving
Q19: Java allows one to create polymorphic references
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents