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

What is asynchronous call?

0 Answers  


Define tracing.

0 Answers  


Describe how ASP.NET maintains process isolation for each Web application?

0 Answers   B-Ways TecnoSoft,


Which is better viewstate or session?

0 Answers  


What?s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?

5 Answers   SLC Ltd,






Difference between .NET and previous version?

0 Answers   Microsoft, TIPL,


why many web.config files are used in are project

2 Answers  


What are the different types of Session state management options available with ASP.NET?

5 Answers   Siebel Systems,


how to add cliet side event to server side? and how to register client script to sever side? wt difference these two

3 Answers   PSI Data Systems,


How To Generate ConnectionString By Using Notepad??

2 Answers  


Difference between Htttppost and Httpget Methods?

3 Answers   Infosys, Microsoft,


I have one .Net application and i have two databases which is in SQL server2000 and one more database in ORACLE? how can i access the database from different Databases?

3 Answers   eXensys,


Categories