Results 1 to 3 of 3
- 12-26-2011, 07:50 PM #1
Member
- Join Date
- Dec 2011
- Posts
- 2
- Rep Power
- 0
Extends a class that implements an interface
I have a class
public class Element implements Comparator{
and another class
public class Block extends Element {
Shouldn't the class Block implements Comparator!?!? I have a lot of extension of Element there is a easy way to implement this in each child of Block?
- 12-26-2011, 07:54 PM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Re: Extends a class that implements an interface
The best way to check is by writing a simple tester program that uses the comparator of the sub class. It will either work, or cause an error.
-
Similar Threads
-
Creating a class that extends Activity and implements OnClickListener
By sehudson in forum AndroidReplies: 4Last Post: 01-17-2012, 12:39 AM -
Advanced extends and implements
By V1C3M4N in forum Advanced JavaReplies: 15Last Post: 11-17-2010, 01:28 PM -
Interface and implements
By Bored2 in forum New To JavaReplies: 27Last Post: 11-10-2010, 01:08 PM -
[SOLVED] how to print a class that extends another class
By alpdog14 in forum New To JavaReplies: 3Last Post: 03-19-2009, 05:00 PM -
Implements MyClass extends JFrame
By coco in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 03:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks