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
Is .net an object oriented language? What are their components?
What is the difference between web application and enterprise application?
How big is the datatype int in .net?
Explain Creational design pattern in .NET?
How to create multiple inheritance in c#, with example?
How will you load dynamic assembly? How will create assemblies at run time?
Which file is taken by compiler when we have both file Application and Server Configuration file?
What is UDDI and how to register the web service in it?
What is a windows process in .net?
Explain the process of serialization in .NET?
One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
Differences between datagrid, datalist and repeater in .net?
How to create properties and methods using controls?
Explain how viewstate is being formed and how it's stored on client in .net?
Explain how garbage collection works?