Results 1 to 2 of 2
Thread: subclass that implements
- 03-30-2011, 12:51 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
subclass that implements
I have a problem where i have to add 2 interfaces into class hierarchy of 1 main class.
it reads: Simulate multiple inheritance by adding at least two
interfaces into your class hierarchy.
However As far as I know you can't implement and extend at the same time. You are creating a main class followed by 4 subclasses. I know i could implement one interface on the main class but how would I do this for the subclasses?
Is creating an abstract class what she means I wonder?
- 03-30-2011, 01:11 AM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Similar Threads
-
What does IMPLEMENTS mean?
By nikkka in forum New To JavaReplies: 3Last Post: 03-07-2011, 11:21 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 -
implements
By danghieu in forum New To JavaReplies: 1Last Post: 04-29-2010, 05:52 PM -
ButtonWatcher implements ActionListener
By darkblue24 in forum New To JavaReplies: 3Last Post: 03-05-2010, 06:18 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks