+ 2

Inheritance and Interfaces

Can we implement interface and inherit from another class in same time? I know that in Java we can.

11th Sep 2016, 8:42 PM
Vitali Bassov
Vitali Bassov - avatar
4 Answers
+ 3
C# doesn't support multiple inheritance, a class can inherits from a single base class and implement any number of interfaces at the same time.
19th Oct 2016, 4:19 AM
Md. Boshirul Islam Khan
Md. Boshirul Islam Khan - avatar
0
Yes you can.
12th Sep 2016, 10:10 AM
Fabrizio Tarizzo
0
What do you mean? Create an interface inherits an another none/interface class? That's what I'm thinking also, can an interface inherits?
15th Nov 2016, 10:34 PM
Jeri Mias
Jeri Mias - avatar
0
yes you can, you can only inherit from one base class but you can implements an infinite number of interfaces
23rd Dec 2016, 11:16 PM
Victor
Victor - avatar