If Hand is self defined abstract class , then it implements itself as template? it doesn’t make too sense. what’s your take on the above declaration
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From docs.oracle.com:
“It is possible, however, to define a class that does not implement all of the interface methods, provided that the class is declared to be abstract.”
The declaration you have only names two interfaces: Comparable, and Serializable. Since Hand is an abstract class, it doesn’t have to actually implement those interfaces, but any non-abstract class that extends Hand must do so.
The page: http://docs.oracle.com/javase/tutorial/java/IandI/abstract.html has more good info/explanation.