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

Always prefer to interface until you are not sure the behavior
of operations.

chose the abstract class if you are sure for some common behaviors need to share of all objects.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between assignment and initialization?

999


What is java reflection?

923


Implementations of set interface?

947


How we create object in copy constructor?

1070


What is a protected method?

1079


What are the rules for naming an array?

991


What is the purpose of static keyword in java?

908


Define a java class.

1343


Tell me are there implementations for sorting and searching in the java libarary?

979


Is an integer an object?

904


Name container classes in java programming?

1026


What is integer size in java?

949


What are the 4 versions of java?

1104


What is bubble sorting in java?

995


What are constants?

999