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 are the benefits of view state?

0 Answers  


What are the server controls in asp.net?

0 Answers  


Is razor a programming language?

0 Answers  


Explain Features in ASP.NET

0 Answers   Microsoft,


What is strong-typing versus weak-typing?

0 Answers  


What are web beacons used for?

0 Answers  


What are cookies in your browser?

0 Answers  


Explain the code Access Security (CAS) in .net Framework?

0 Answers  


What is postback and autopostback in asp.net?

0 Answers  


What is asp.net ajax?

0 Answers  


Types of values mode can hold session state in web.config ?

1 Answers   Accenture, Parrot Systems,


Differences between VB.Net and C#, related to OOPS concepts

5 Answers   CSC,


Categories