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

Why do we use bufferedreader?

1012


Can you explain inner class.

1090


What is a get method?

1057


What is a Null object?

1640


What is the length of a string?

1025


What is passed by reference and pass by value ?

1032


Can extern variables be initialized?

954


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

1032


What are JVM.JRE, J2EE, JNI?

1104


Explain the advantages of packages in java?

919


What is identifier with example?

1049


How does enum work in java?

1025


What is meant by structural programming?

1021


Difference between ‘is-a’ and ‘has-a’ relationship in java?

1006


What happens when heap memory is full?

993