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

Answers were Sorted based on User's Feedback



Difference between abstract class and interface..

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

Difference between abstract class and interface..

Answer / venu

Abstract class and interface

Abstract class we can declare variables here,bt interface we
cannot,interface methods are by default is public,bt
abstract nt.
abstract we can declare object bt we cannot declare instants
of the class.bt interface we cannot do both.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

what is strong name?

4 Answers   Fidelity, Infosys, Microsoft, Shriram Value Services,


What is voluum?

0 Answers  


What are the new web part controls in asp.net 2.0 ?

0 Answers  


Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc

0 Answers  


How to send auto matic emails based on scheduled tasks to several of my clients

6 Answers  


when to use webservice and when to use remotong diff between them

3 Answers  


How to manage different kinds of sessions in ASP.NET?

0 Answers   Cap Gemini,


When does a session actually start?

0 Answers  


What is difference between singleton and single call?

0 Answers  


if u r projet consist of 4 people means how can u manage the file

10 Answers   Mind Tree,


What is difference between cookies and cache?

0 Answers  


What are various authentication mechanisms in ASP.NET ?

4 Answers   TCS,


Categories