+ 1

Can you extend to multiple parent classes? In Java.

I am assuming you can only extend to one other class, is this correct?

8th Feb 2018, 3:55 PM
Daniel Moss
Daniel Moss - avatar
4 Antworten
+ 7
In c++ you can.. Do you mean something like this? class super: public base1, base2, ...
8th Feb 2018, 4:44 PM
AZTECCO
AZTECCO - avatar
+ 4
Some languages supply multiple inheritance. But for the most you are right.
8th Feb 2018, 4:34 PM
Oma Falk
Oma Falk - avatar
+ 1
multiple inheritance Is not possible in java we can use interface and implement two interfaces at a time
15th Feb 2018, 5:11 PM
DEVIREDDY . PAVITHRA
DEVIREDDY . PAVITHRA - avatar
0
ya I guess I should have been more specific, I was wondering if you could do it with Java.
8th Feb 2018, 11:27 PM
Daniel Moss
Daniel Moss - avatar