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?
You can extend a single class and implement as many classes as you want.
that is fine.
class x extends y implements a, b, c, d