Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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?

1015


What is an assembly? What are the different types of assemblies?

1188


Explain soap and xml?

1031


What’s different between process and application in .net?

1079


Is there built-in support for tracing?

1031


What are the advantages of .net?

1010


What is meant by managed and unmanaged code?

1144


What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?

1143


Example from .net. Integer & struct are value types or reference types in .net?

1017


What is finalize method in .net?

1122


What are the new 2.0 features useful for?

1206


What is deferred execution vs. Immediate execution in linq?

1046


What is namespaces in .net?

1154


How to load a user control dynamically in runtime?

1053


Explain the difference between .net 2000 and .net 2005(features)? Which one is better?

1020