How different are interface and abstract class in .Net?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / manikandan
The interface is the one in which all the methods are empty
one but in the abstract class it is not necessary that all
the method has to be abstract .it can be only one method
that is abstract
| Is This Answer Correct ? | 15 Yes | 18 No |
What does stateless mean?
What is the use of Treeview control?
What is reflection and what is it for?
Tell us what is json data, and what is one way that .net developers can work with json?
Explain asp.net?
What is the advantage of packaging over xcopy in .net?
What is different between Web User Control and Web Custom Control?
What are multicast delegates?
Write code for fetch record nos 15 to 25 from a dataset containing 50 records?
Tell us what is the native image generator?
<li id="Accomodation" runat="server" visible="false"><a href="../searchaccommodation.aspx?">Accomm</a></li> i have this code.now on server side i want to compare this id(Accommodation) value and want id i.e.Accommodation.visible=true;
what is prototype design pattern in .net