What are the the two parts of an ADT? Which part is accessible to a user and which is not? Explain the relationships between an ADT and a class; between an ADT and an interface; and between an interface and classes that implement the interface.
Assume there is an interface named Comparabl e with the following definition:
public i nterface Comparabl e { I IN compare To(Object obj) ;
}
Do you think class String implements interface Comparabl e? Provide a reason for your answer
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here