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

how to set the startup position of the form?

1949


What's the difference between an application and a program?

1144


Explain the Lapsed Listener problem in .net

1189


what is the difference between running an application with and without debugger?

2101


What is .net viewstate?

923


define cache memory? : Dot net architecture

989


what is sessions and cookies take one example simple way to understand

2349


What is one way operation?

972


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

2146


What other than biginteger has been introduced in system.numerics namespace?

959


Can I create my own permission set?

1049


Can you explain server controls in atlas?

980


What is MS chart control in visual studio?

1242


What is the purpose of hard disk? : Dot net architecture

967


What is .net mobile input validation. : Microsoft dot net mobile

938