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...

when to use abstract class and when to use interface?

Answer Posted / devarathnam c,kotagudibanda(po

Hi...
When u want to inherit the properties of base class only
(not other resources) go for Abstract class.
When u want to inherit the properties of base class and
other resources go for Interfaces .

Is This Answer Correct ?    42 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of encapsulation in java?

1012


What do you mean by an object in java?

1138


What is a boolean output?

970


What is main in java?

1158


Explain the usage of this with constructors?

1029


How to reverse a string in java?

1084


What is passing by reference in java?

1030


What are the rules for variable declaration?

974


What is command line argument in java?

1157


What is method reference?

987


Is singleton class thread safe?

1003


What are the different types of collections in java?

962


When should I use stringbuffer?

1024


What is method overriding in java ?

1199


What is a copy constructor in java?

1131