66.5k views
5 votes
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 ________.

User Amartynov
by
4.7k points

2 Answers

4 votes

Answer:

Infinite recursion

Step-by-step explanation:

Infinite recursion as the name implies, is a case whereby their is an infinite recursion of event happening in a programming, it will continue to happen endlessly and it happens when recursive function fails to stop, the above question shows how failure to prefix the superclass method name with the keyword super and a dot (.) in the superclass method call caused a failure in the programming and there was infinite recursion. It will only be stop when and external force is applied to it like removing the plug from the switch.

User FenryrMKIII
by
4.4k points
4 votes

Answer:

c. Infinite Recursion

Step-by-step explanation:

Based on the scenario being described within the question it can be said that this will cause a concept to occur known as infinite recursion. This refers to when a function continuously and endlessly recalls itself. This usually indicates that there exist's a bug in the coding and will usually cause the software or in some many cases the hardware to crash.

User Neil Griffin
by
4.9k points