aspose file tools*
The moose likes Cattle Drive and the fly likes OOP 3 - Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "OOP 3 - Question" Watch "OOP 3 - Question" New topic
Author

OOP 3 - Question

Rory Lynch
Ranch Hand

Joined: Aug 03, 2007
Posts: 95
I am currently working on OOP3 SortNames. One of the objectives of the assignment is to learn about implementing Interfaces.

I would like to ask a question without going into detail or giving anything away hopefully.

In my solution to this assignment (currently undergoing scrutiny) I have implemented an Interface. My understanding is that when you implement an Interface your class must override every method of the Inteface.

I have left one method out, it is in the Interface but not in my class and it works
I dont know why it works
But I am sure you can tell me
otherwise I shall remain


I wish that for just one time, you could stand inside my shoes.<br />You'd know what a drag it is to see you.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9053
    
  12
What class does your class extend? I know that it also implements an interface, but every class extends a particular class by default if one is not specified. Does that parent class implement that method of the interface that you're wondering about?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Rory Lynch
Ranch Hand

Joined: Aug 03, 2007
Posts: 95
Yes.

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OOP 3 - Question