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 array in java?

1057


What are different exception types exceptions available in java ?

1050


Can we create an object of private class?

1024


What access modifiers can be used for class ?

1078


What is the use of default method in interface in java? Explain

1048


How to find the given number is a prime number or not by getting input from the user

1157


Which is the class in java?

1119


What is n in java?

989


Explain when noclassdeffounderror will be raised ?

1096


please send me hr interview questions in it industry

2173


What are the features of junit?

1089


what are different ways in which a thread can enter the waiting state? : Java thread

1011


Is finalize() similar to a destructor?

1078


What are keywords in programming?

1070


What is the use of protected in java?

1069