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
What is a design pattern and what is it for?
Does .net supports destructors concept?
What is the use of activex control in .net?
What is RPC? What is the use of it?
What tools is used to develop .NET applications?
What is assembly in .net?
Explain Different kinds of methods?
How can you turn-on and turn-off cas?
What is Flyout Design Pattern in .NET?
What is namespace in .net?
Define marshling?
What does jit compilation do in .net?
How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?
What is typical about a windows process in regards to memory allocation in .net?
Please explain what is the difference between constants and read-only variables?