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

How to Create and Consume a Web Service?

1 Answers  


what is the keyword used for self reference?

0 Answers  


Explain what are possible implementations of distributed applications in .net?

0 Answers  


Tell us the difference between the while and for loop. Provide a .net syntax for both loops?

0 Answers  


Explain the difference between the stack and the heap?

0 Answers  






Is do-it (chennai) a good institute to learn dot-net???? are the trainers well experienced??

2 Answers   Satyam,


Write code for fetch record nos 15 to 25 from a dataset containing 50 records?

4 Answers   C Squared Systems,


What is the purpose of IClonable interface in .NET?

0 Answers   Sans Pareil IT Services,


Why do we use the “using” statement?

0 Answers  


How do I use the thread pool?

0 Answers  


Difference between user groups and code groups

0 Answers  


Explain webfarm vs webgardens in .net?

0 Answers  


Categories