Which among the following two is best and why? Abstract
Class and Interface. What is the major difference in between
those two except the discrete methods and methods with
function definition.
Answer Posted / anitha
a)for Future, we can provide extra services in Abstract
Class ,these futures can able to access all of its
Clients. And also it supports reusability.
suppose the implementer need not provide implementation
for all the methods.
Where as in Interface we don’t have this future(reusability
and extra servicess).
each implementer need to provide
implementation for all the methods and
also we cont provide extra services in
future.The interface should be constant.
b)Interface can support multiple inheritance where as
abstract class does not.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
I am constantly writing the drawing procedures with system.drawing.graphics, but having to use the try and dispose blocks is too time-consuming with graphicsobjects. Can I automate this?
What is an assembly? What are the different types of assemblies?
Explain soap and xml?
What’s different between process and application in .net?
Is there built-in support for tracing?
What are the advantages of .net?
What is meant by managed and unmanaged code?
What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?
Example from .net. Integer & struct are value types or reference types in .net?
What is finalize method in .net?
What are the new 2.0 features useful for?
What is deferred execution vs. Immediate execution in linq?
What is namespaces in .net?
How to load a user control dynamically in runtime?
Explain the difference between .net 2000 and .net 2005(features)? Which one is better?