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 .net3.0 and .net3.5?
What is a formatter in .net?
Is .net an object oriented language? What are their components?
Explain the difference between garbage collections in .net 4.0 and earlier versions?
What is data type and how many types of data types are in .NET ?
What are the advantages of .net core?
What are the improvements made in cas in .net 4.0?
What is CLR, CLS,CTS
4 Answers Deloitte, Vee Technologies,
What is RCW (Run time Callable Wrappers)?
What does mean by .net framework?
How to customize the trace output?
What is boxing and un-boxing in .net?