How different are interface and abstract class in .Net?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the procedure to add assemly to gac to make it shared one?

647


Explain can 2 different applications use the same dll in gac at the same time?

676


How do you view the methods and members of a dll?

704


What is the intermediate language between asp and asp.net1.0?

1539


Explain why do we use the “using” statement?

664






What is an assembly? What are the different types of assemblies?

711


What are the new 2.0 features useful for?

739


The project which you have made, which methodology did you use?

685


How viewstate is being formed and how it's stored on client in .net?

650


What's the problem with .net generics?

643


What is COM Interoperability in .NET

738


What is lambda expressions in c#?

681


What are multicast delegates?

671


Explain code access security.

662


how can i create a table from front end to back end in wabe page?

1578