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 are use of Cloud computing....?
How can you clean up objects holding resources from within the code?
How would ASP and ASP.NET apps run at the same time on the same server?
Explain the .net framework overview?
How com+ related to the dna architecture?
Please explain what do the terms “boxing” and “unboxing” mean?
How to instantiate a delegate?
How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?
What is exception handling?
What is data type and how many types of data types are in .NET ?
What are nullable types in .NET
0 Answers TryTechnicals Pvt Ltd,
Explain what is a manifest in .net?