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

Is global asax mandatory?

930


What are the properties of the eventargs argument when capturing keyboard events?

1016


What is a global postback url?

895


What are the namespace classes used in asp.net mvc? : asp.net mvc

987


What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

2403


How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

4135


What are ASP.NET Web Forms? How is this technology different than what is available though ASP?

1580


If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

952


What is the purpose of session management?

932


What is cross page posting? How is it done?

898


What is viewstate? In which event of the page life cycle, is the viewstate available?

978


What is a proxy in web service?

1026


Explain about consistent programming model in the .NET framework?

1024


List the events in page life cycle.

913


What is the asp.net mvc folder conventions? : asp.net mvc

866