How different are interface and abstract class in .Net?

Answers were Sorted based on User's Feedback



How different are interface and abstract class in .Net? ..

Answer / vara prasad

In both Interface and Abstract classes we cannot create a
object but abstract classes can be inherited and we can
create a object for that derived class.

Abstract classes may contain concrete methods as well as an
Implementation of methods where as Interface doesn't
contain any implementation it just contains concrete
methods and to use those methods in interface we need to
inherit that interface and have to make sure that all
methods in the interface are implemented or else even the
derived class becomes an Interface.

Is This Answer Correct ?    26 Yes 6 No

How different are interface and abstract class in .Net? ..

Answer / manikandan

The interface is the one in which all the methods are empty
one but in the abstract class it is not necessary that all
the method has to be abstract .it can be only one method
that is abstract

Is This Answer Correct ?    15 Yes 18 No

Post New Answer

More Dot Net General Interview Questions

Tell us what is a sealed class?

0 Answers  


Explain soap and xml?

0 Answers  


What is strong-typing versus weak-typing? Which is preferred?

0 Answers  


Different between .net & j2ee ?

0 Answers  


How inheritance works in .net?

0 Answers  






I am looking for a fast track course (MAX 15 days) in MS.NET 3.5 and SQLSERVER 2005 in hyderabad or mumbai or pune. I am working in mumbai so cannot gor for long course. Can any body suggest me the best couching class or best faculty for the same. Thanks.

2 Answers  


Directcast(123.34,integer) - should it throw an error? Why or why not?

1 Answers   Wipro,


Define satelite assembly?

0 Answers  


What is operator overloading in .net?

0 Answers  


how to connect database connectivity in dotNET? if suppose SQL server?and also MS access?

8 Answers  


What is a delegate in .NET?

1 Answers  


How many design patterns can be created in .net?

0 Answers  


Categories