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 / mkm

)1. Accessibility modifier(Public/Private/internal) is
allowed for abstract class.
Interface doesn't allow accessibility modifier

2. class can inherit only one abstract class
class can implement more than one interface.

(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.
• Interface is used to "implements"; whereas abstract class
is used to "extends".
• Interface can be used to achieve multiple inheritance;
abstract class can be used as a single inheritance.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we are using mvc instead of asp.net? : Asp.Net MVC

1047


Describe SOA and the tenets of it?

1052


How can exception be handled with out the use of try catch?

1004


What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?

982


What do you mean by marshalbyref?

1099


What is an assembly? Explain its parts.

1073


Can we create a multiple user simultaneously ?

1132


1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????

21057


What is meant by server side scripting?

955


What is a web farm?

988


What is difference between ispostback and autopostback in asp net?

1046


Can you nest updatepanel within each other?

978


What are the new navigation controls in asp.net 2.0?

1002


Differences between “dataset” and “datareader”.

1041


What is asp.net mvc5? : Asp.Net MVC

1028