Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

[java] Optional methods in interfaces

Started by Luctus Nov 27, 2004 at 3:34 PM 2 replies 1.3k views
Original Post
Luctus
Luctus
Looking at the interface for Iterator (link) in the javadoc, one can see that the remove method is optional to implement. How do one declare an interface method to be optional?
-LuctusIn the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move - Douglas Adams
Luctus
Luctus
Ok, so it's optional to write an implementation, but it still needs a definition.
-LuctusIn the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move - Douglas Adams

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.