Which of the following is true about this code?
Suppose Animal is an interface that specifies a single method – speak. Now suppose the Dog class implements the
Animal interface. In addition to the speak method, the Dog class also has a method called wagTail. Now consider the
following code.
```
Animal a = new Dog();
a.wagTail();
```
a) It will result in a compile-time error.
b) It will result in a run-time error.
c) It will call the speak method defined in the Animal interface.
d) It will call the wagTail method defined in the Dog class.
e) none of the above are true.
a) It will result in a compile-time error.
You might also like to view...
When you close a form or a report, the On Close event is triggered and Access executes the steps stored in the macro associated with the On Close event
Indicate whether the statement is true or false
Which is the default app for Splunk Enterprise?
A. Splunk Enterprise Security Suite B. Searching and Reporting C. Reporting and Searching D. Splunk apps for Security