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...

Difference between abstract class and interface

Answer Posted / arjunrao

(1) An abstract class may contain complete or
incomplete methods. Interfaces can contain only the
signature of a method but no body. Thus an abstract class
can implement methods but an interface can not implement
methods.
(2) An abstract class can contain fields,
constructors, or destructors and implement properties. An
interface can not contain fields, constructors, or
destructors and it has only the property's signature but no
implementation.
(3) An abstract class cannot support multiple
inheritance, but an interface can support multiple
inheritance. Thus a class may inherit several interfaces
but only one abstract class.
(4) A class implementing an interface has to
implement all the methods of the interface, but the same is
not required in the case of an abstract Class.
(5) Various access modifiers such as abstract,
protected, internal, public, virtual, etc. are useful in
abstract Classes but not in interfaces.
(6) Abstract classes are faster than interfaces.

Is This Answer Correct ?    591 Yes 61 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of cache? : Dot net architecture

998


What are the major differences between services and web services?

932


what is diffrent beatween localprinter and networkprinter

1766


what is tracing? Where it used?

1104


What is the use of CLR in .NET?

1033


Differences between VS 2005, 2008 and 2010 ?

1011


Different types of authentication modes in .net framework ?

1000


Explain difference between machine config vs. Web config : Dot net architecture

891


Explain the difference between state server and sqlserver : Dot net architecture

890


inprocess vs out process session state : Dot net architecture

945


What is difference between .net and visual studio?

972


What is the difference between absolute expiration and sliding-time expiration?

1040


define cache memory? : Dot net architecture

982


Explain cache memory? : Dot net architecture

957


Explain the difference between primary & secondary storage device? : Dot net architecture

956