Difference between abstract class and interface in .net?



Difference between abstract class and interface in .net?..

Answer / Avnish Kumar Awasthi

An Abstract Class can have implemented methods as well as abstract methods, whereas an Interface contains only abstract members. An Abstract Class can be inherited and its non-abstract methods can be overridden, while an Interface is meant to be implemented by other classes. In essence, abstract classes are a base for inheritance, whereas interfaces are a contract that a class agrees to implement.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What are situations when you register .NET assembly in GAC ?

1 Answers   UGC Corporation,


How do you give a Windows service specific permissions?

1 Answers  


Value type & data types difference. Example from .NET.

2 Answers   TCS,


Explain what is reflection in microsoft .net context?

1 Answers  


How to debug failed assembly binds?

1 Answers  


I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.

1 Answers  


How com+ related to the dna architecture?

1 Answers  


What is .NET Framework?

2 Answers  


How do you instantiate a complex number?

1 Answers  


Explain about the features and elements present in Visual studio.NET IDE?

1 Answers  


What is singlecall activation mode used for in .net?

1 Answers  


Explain how garbage collection works?

1 Answers  


Categories