jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interfaces" Watch "Interfaces" New topic


Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
When using an interface, I know you are forced to use at least the method signatures in the interface that you implement. However can you add other methods to the class that you are using. Or will the interface make these invisible?

By failing to prepare, you are preparing to fail.
Benjamin Franklin (1706 - 1790)

By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
You can add additional methods. You can implement more than one interface.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link: http://aspose.com/file-tools
subject: Interfaces
It's not a secret anymore!