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

How will you load dynamic assembly? How will create assemblies at run time?

1868


Tell me what is a “jagged array”?

818


What is boxing and un-boxing in .net?

811


How will you do redo and undo in textbox control?

768


With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?

734


What are an object and a class?

754


What is the difference between constants and read-only variables?

763


Difference between class and interface in .net?

771


Which namespace does it belong to by default?

778


Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column

2138


What is jit compilers?

766


What do you mean by web service?

867


What is singlecall activation mode used for in .net?

789


Different levels of priority provided by .net.

821


What is the purpose of enumerable class in .net?

849