+ 2

Can i inherit multiple Superclasses in one subClass in java ??

21st Jan 2021, 11:38 PM
‎Abdul Jalil
‎Abdul Jalil - avatar
2 Respostas
+ 5
You can only extend one class but if the class your extending inherits a class, then in the sub class it has access to the parent data plus the data from which parent class extended. you can extend multiple interfaces.
22nd Jan 2021, 12:32 AM
D_Stark
D_Stark - avatar
+ 2
Java doesn't support multiple inheritance and i don't know for c#
22nd Jan 2021, 12:30 AM
Nassera
Nassera - avatar