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

difference between gridview,data list and repeater control

7 Answers   ABC, Olive Tech,


What is the purpose of master page?

0 Answers  


Why asp.net is used?

0 Answers  


What are the event handlers that can be included in the Global.asax file?

0 Answers   MindCracker,


Difference between Array and ArrayList? How Array is benifitful than ArrayList?

3 Answers   Tech Mahindra,






What is Runtime callable wrapper?

2 Answers  


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

0 Answers  


What are the file extensions for razor views?

0 Answers   NA,


How do we sort the data from a dataset?

0 Answers  


What are the ways of preserving data on a Web Form in ASP.NET?

0 Answers  


web user and custom conrols

1 Answers  


WSDL means?

0 Answers   Siebel,


Categories