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 for abstract class and when to go for interface

Answer Posted / sumit kumar

if your class design have some common and some different
behavior then go for - abstract class
if your class design have only different behavior then go
for interface.

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an example of a keyword?

1165


State some advantages of java?

1284


Explain wait() method of object class ?

1291


What is %d in printf?

1093


What is object data type?

1047


Explain different types of thread priorities ?

1136


Is java platform independent?

1027


Explain a few methods of overloading best practices in java?

1021


How would you use Bubble Sort to sort the number of elements?

1059


What is the file extension for java?

1122


What is thread safe in java?

1046


How do you create an array in java?

1036


Does variable declaration allocate memory?

1093


Which api is provided by java for operations on set of objects?

1526


What is native method in java?

1122