1. Define an interface Measureable3D that extends the interface Measurable, as given. The new interface should declare the method getVolume.
2. Consider a class C that overrides the method toString of the class Object.
a. What does this mean for C?
b. If an object of C receives a call to toString, which version of the method is called, the one in Object or the one in C?
c. Is the version of toString chosen by the compiler or at execution time?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here