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 postback implementation?when pre-render event n init event is fired?

2 Answers   Ness Technologies,


What does session_start () do?

1 Answers  


Anyone has Latest Microsoft ASP.NET Certification Dumps for these?

1 Answers  


What are session state modes?

1 Answers  


How do we get only edited/deleted/inserted records from a Dataset?

1 Answers   Syntax Softtech,


What are merge modules?

1 Answers  


What is the difference between GridView and Repeater controls in ASP.NET?

1 Answers  


What is the difference between a thread and a process?

3 Answers  


In asp.net, how can you validate drop down box?

1 Answers   Accenture,


How can we Deploy a website?

2 Answers  


What are the advantages of passport authentication?

1 Answers  


we are working in .net namespaces like using system.io,system.text. these namespace before we use "using " keyword what means of using?

7 Answers   CEI, CSC, HCL, Tech Mahindra,


Categories