What is difference between interface inheritance and class
inheritance ?

Answer Posted / naag algates

1. Derived class can inherit from only one base class(because no multiple inheritance)
2. Base class(or any class) can inherit any number of interfaces.
3. Single class can support multiple interface and multiple class can support same interface.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a sample code to write the contents to text file in c#?

650


Define acid rule of thumb for transactions in c#.

652


What does void do in unity?

695


Why do we need nullable types in c#?

892


Explain the difference between .net and c#?

685


What is file extension of webservices?

774


without modifying source code if we compile again, will it be generated MSIL again?

674


what are the contents of an assembly ?

733


What sort algorithm does c# use?

692


How many root nodes are there in an xml document?

643


Is php better than c#?

668


Is is possible to force garbage collector to run?

687


Is overriding of a function possible in the same class?

664


Is lazy t thread safe?

733


What are the types of parameters in c#?

709