File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes confusion in k&b page 118 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "confusion in k&b page 118" Watch "confusion in k&b page 118" New topic
Author

confusion in k&b page 118

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Hey rancher i have a confusion in the following paragraph that i have took from k&b of page 118 as

" You can extends only one class , but implements many interface. But remember that subclassing define who and what you are , whereas implementing define a role you can play or a hat you can wear, despite how diffrent you might be from some other class implementing the same interface"

in the above paragraph i confused from "But remember that to onwards....

please specify


with regard

Arun kumar maalik
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
A class that implements the interface agrees to implement all the methods defined in the interface, thereby agreeing to certain behavior. So, we can have different implementation of the same method (that is in interface) in different classes. The coding behavior with interfaces provides a cleaner separation of behavior and implementation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: confusion in k&b page 118