Results 1 to 3 of 3
- 12-23-2007, 07:57 AM #1
Member
- Join Date
- Dec 2007
- Posts
- 49
- Rep Power
- 0
Implementing and Extending together
I have following scenario:
Basics is an interface and BusinessLogic is a Java class. When I try to compile, I get following error:Java Code:public class Benz implements Basics extends BusinessLogic { … }
What’s wrong with my code?Java Code:Exception in thread "main" java.lang.Error: Unresolved compilation problem:
- PEACE
- 12-23-2007, 03:29 PM #2
You want to do extends first:
Before implementing an interface, you need to know more about the class and if there is a superclass in existence. If you say it's inherited after you implement the interface then you get an compilation error.Java Code:public class Benz extends Business Logic implements Basics { ... }
- 12-24-2007, 09:49 AM #3
Member
- Join Date
- Dec 2007
- Posts
- 49
- Rep Power
- 0
Similar Threads
-
[SOLVED] Problem with extending classes...
By Bizmark in forum New To JavaReplies: 4Last Post: 04-07-2008, 11:21 PM -
Eclipse plugin extending the standard editor
By gaspard in forum EclipseReplies: 0Last Post: 03-04-2008, 03:23 PM -
implementing a button instead.
By birdofprey in forum AWT / SwingReplies: 3Last Post: 02-18-2008, 03:21 AM -
implementing shape
By sidkdbl07 in forum Java 2DReplies: 1Last Post: 01-12-2008, 06:42 PM -
EXTENDING the string class
By ferno in forum New To JavaReplies: 3Last Post: 12-11-2007, 09:41 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks