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

How to manage different kinds of sessions in ASP.NET?

0 Answers   Cap Gemini,


Difference between .NET and previous version?

1 Answers   Microsoft,


What is CLR ? Differentiate between CLR & CTS.

7 Answers   3i Infotech, TCS,


What is razor? : asp.net mvc

0 Answers  


What does the following SQL statement return, assuming that all tables and column names are correct? SELECT FirstName, StreetAddress FROM Employees JOIN AddressBook ON Employees.EmpID = AddressBook.EmpID a) Nothing, the JOIN syntax is wrong. b) All the records form the Employees table, and only the matching ones form the StreetAddress table. c) All the records from the StreetAddress table and only the matching records form the Employees table. d) Only the matching records from the two tables.

4 Answers   Syntax Softtech,






What are server-side comments in ASP.NET?

0 Answers   Winsol Solutions,


What is the significance of proxy user?

0 Answers   MCN Solutions,


where should write the connection string Show that it will apply whole pages in the website

5 Answers   Symco,


Explain the difference between panel and groupbox classes using .net?

0 Answers  


Where session variables are stored?

0 Answers  


What is custom tag in Web.Config?

0 Answers   Accenture,


What is difference between session and cookies?

0 Answers  


Categories