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?