Reputation: 14155
Quick question: In c# can one class implement one base class and many interfaces?
for example
public MyCar : CarBase, ICar, ISomething
{
...
}
Thanks
Upvotes: 0
Views: 57
Reputation: 19296
Yes, you can do this.
Here is good article:
http://msdn.microsoft.com/en-us/library/ms173149.aspx
Upvotes: 1
Reputation: 3005
yes this is fine, as long as the class and/or baseclass implements whatever all the interfaces declares.
Upvotes: 4