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

What is an EXE?

1 Answers  


Explain can the validation be done in the server side? Or this can be done only in the client side?

0 Answers  


How to load a user control dynamically in runtime?

0 Answers  


If we want to write a Windows service that cannot be paused, only started and stopped. How to accomplish that?

1 Answers  


Please explain what is the difference between a class and an object?

0 Answers  






Explain the top .net class that everything is derived from?

0 Answers  


How does the .NET framework work?

1 Answers  


Why SOAP is required?

0 Answers   Alcatel-Lucent,


Explain the difference between the stack and the heap?

0 Answers  


What do the terms “boxing” and “unboxing” mean?

0 Answers  


Different between .net & j2ee ?

0 Answers  


which is the best dot net coaching center in visakhapatnam??

3 Answers  


Categories