When overriding a superclass method and calling the superclass version from the subclass method, failure to prefix the superclass method name with the keyword super and a dot (.) in the superclass method call causes ________.
A) a compile-time error.
B) a syntax error.
C) infinite recursion.
D) a runtime error.
Correct Answer:
Verified
Q1: Consider the classes below, declared in the
Q2: Which of the following keywords allows a
Q4: Superclass methods with this level of access
Q5: An advantage of inheritance is that:
A) All
Q6: Using the protected keyword also gives a
Q7: Which superclass members are inherited by all
Q8: Every class in Java, except _, extends
Q9: Inheritance is also known as the
A) knows-a
Q10: Which of the following is the superclass
Q11: When a subclass constructor calls its superclass
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