Difference between abstract class and interface
Answer Posted / leeladhar
abstract means hiding some thing and interface are use for
multiple inheritence because a subclass can't extend by two
base class it can implement by two interface only.
in abstract class some method will be abstract or some
method will be non abstract.
for abstract method you need subclass that will be define
base class's abstract method.
subclass is not mendatory to all abstact class.
in interface all method will be abstract type so for that
subclass is mendatory that will define method.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
what are constructors and destructors?
What is .net viewstate?
Explain about cookie less session state? : .NET Architecture
how we can fire event in databound column in datagrid without using button?
What are end points, contract, address and bindings?
Explain about validation?
Explain .net mobile automatic paging? : Microsoft dot net mobile
Explain some of the disadvantages due to microsoft.net?
What is the purpose of Accordian in jquery? Where it can be used?
Explain dma? : Dot net architecture
Explain about developer benefit from memory management?
What is IL code, CLR, CTS, GAC & GC?
What is the difference between an event and a delegate?
Explain about .net garbage collector?
Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?