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


Please Help Members By Posting Answers For Below Questions

Is .net an object oriented language? What are their components?

525


What is the difference between web application and enterprise application?

564


How big is the datatype int in .net?

569


Explain Creational design pattern in .NET?

619


How to create multiple inheritance in c#, with example?

553






How will you load dynamic assembly? How will create assemblies at run time?

1617


Which file is taken by compiler when we have both file Application and Server Configuration file?

1561


What is UDDI and how to register the web service in it?

624


What is a windows process in .net?

579


Explain the process of serialization in .NET?

616


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?

519


Differences between datagrid, datalist and repeater in .net?

533


How to create properties and methods using controls?

588


Explain how viewstate is being formed and how it's stored on client in .net?

544


Explain how garbage collection works?

571