0

Which do you prefer, inheritance and polymorphism in Java or C#?

23rd Dec 2016, 11:26 AM
Diógenes França Almeida
5 Answers
+ 2
Who's the guy that downvoted everything, lol.
18th Mar 2017, 7:58 AM
SIMOMEGA
SIMOMEGA - avatar
- 1
c# because you can inherit from multiple interfaces, where as in Java, you cannot.
10th Jan 2017, 9:01 PM
Akinni James
Akinni James - avatar
- 1
You cannot inherit from multiple classes in c#... You can realize multiple interfaces.
12th Jan 2017, 9:08 PM
Ivan G
Ivan G - avatar
- 1
Can u inherit from multiple classes in Java? If yes than I'd rather have that than multiple useless interface inheritance, as for polymorphism I don't know how it works in Java.
15th Feb 2017, 7:33 AM
SIMOMEGA
SIMOMEGA - avatar
- 1
is it possible to declare classes within ur main class as many as the number of classes that u want to inherit from , thus it will look like inheriting from many classes, I think.
16th Mar 2017, 2:51 PM
Hussain Al-Umran
Hussain Al-Umran - avatar