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

1) abstract classes may contain one or more abstract methods(methods that can't be instantiated). on the other hand interface should contain only abstract methods.

2) abstract classes may implement some of its methods that are not abstract. but interface can't implement any of its method becoz al its methods are abstract.

3)in interfaces all the methods are implicitly abstract,final,static so these modifiers can b omitted but this nit the case wid abstract classes.

4)an important point to note about abstract classes is: they can be subclassed,this sub class implement all the abstract methods that are declared in abstract class.

interfaces provide an alternative to multiple inheritance becoz a class can implement more than one interface.

but an abstract can b sub classed only once.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of application software?

916


Explain about appdomains?

988


Explain how does .net mobile work? : Microsoft dot net mobile

814


can u give me real example of how web.config overrides the machine.config file?

1727


How can I write my own .NET host?

963


IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class

1969


How to improve the cache performance? : Dot net architecture

886


What is the importance of updatepanel control?

977


What are the options provived by vss to the user? how it will help us while delevoping application?

2158


I want to create a project like google maps how can we do that with atlas?

862


8. Oop-Why and were we use Interfacse and Abstract class.

2093


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

970


Explain how to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

874


Why only boxed types can be unboxed?

1040


Why am I getting an invalidoperationexception when I serialize an arraylist?

837