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

If you have to implement all of the fuctionalities provided
by, then in this case you should use interfaces because
they force you to implement all of the methods.

on the other hand if you think you have to imlement few of
them , then better you use abstract class.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is enhanced loop in java?

949


How does list work in java?

873


Which containers use a flowlayout as their default layout in java programming?

949


What is the purpose of garbage collection in java? When is it used?

1011


explain different ways of using thread? : Java thread

972


What is heterogeneous in java?

911


What are the actions that can occur when a thread enters blocked state?

1020


Differentiate between array list and vector in java.

1075


What is the use of toarray () in java?

1027


What is string [] java?

915


What is oop principle in java?

1068


What is thread pool in java with example?

960


I want to store more than 10 objects in a remote server? Which methodology will follow?

3144


What is the size of arraylist in java?

997


Is java free for commercial?

874