A good answer might be:A type cast is necessary to tell the compiler that the variable tax in this case contains a Book object:
| |
Additional Facts about InterfacesThere are features of interfaces that the example did not show: A class can implement several interfaces:
Now SomeClass must implement all the methods listed in all the interfaces. | |
QUESTION 18:Could the interfaces contain several definitions of the same constant? Click Here after you have answered the question |