differences between class inheritance and interface?

Answers were Sorted based on User's Feedback



differences between class inheritance and interface? ..

Answer / chandra prakash

The most important technical distinction between creating a derived class and implementing an interface is that a derived class can only inherit from one base class, but a class can implement any number of interfaces.

Is This Answer Correct ?    6 Yes 2 No

differences between class inheritance and interface? ..

Answer / waqas ahmed

In C++, multiple class inheritance was allowed but in C# it
is not. The alternate for multiple inheritance is the use of
interface, it works like a pure abstract class (having
methods prototype only and have to be implemented by the
class that is inheriting the interface)

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Features in ASP.NET ?

1 Answers   Microsoft,


Advantage of data Reader?

2 Answers  


How is it possible for .NET to support many languages?

0 Answers  


What are the advantages of Web API?

0 Answers  


What is state management in asp.net with example?

0 Answers  






write a sample code make use of xmltext writer

1 Answers   GCI,


what is structured data format?

2 Answers  


can i call the java script to code behind file?if yes how?

4 Answers   Wipro,


How tooltip is set through code-behind in ASP.NET?

0 Answers  


What are the modes of updation in an updatepanel?

0 Answers  


What are the various ways of securing a web site that could prevent from hacking etc ?

1 Answers  


Is data can be edited in the Repeater control?

2 Answers  


Categories