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
How will you load dynamic assembly? How will create assemblies at run time?
Tell me what is a “jagged array”?
What is boxing and un-boxing in .net?
How will you do redo and undo in textbox control?
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?
What are an object and a class?
What is the difference between constants and read-only variables?
Difference between class and interface in .net?
Which namespace does it belong to by default?
Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column
What is jit compilers?
What do you mean by web service?
What is singlecall activation mode used for in .net?
Different levels of priority provided by .net.
What is the purpose of enumerable class in .net?