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 is CLR, CLS,CTS
4 Answers Deloitte, Vee Technologies,
What is lazy initialization?
What is use of ContextUtil class?
Explain me what is an anonymous method and how is it different from a lambda expression?
Difference between VB.NET and C#. Which is faster ?
What is singlecall activation mode used for in .net?
Please explain what is the .net framework and how does it work?
what all type of application can u make with visual studio?
What is the difference between the C#.NET and VB.NET?
Which namespace is used to support multithearding in .NET?
0 Answers Sans Pareil IT Services,
Is .net core stable?
What is serialization in .NET? What are the ways to control serialization?