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

abstract class is used if you are willing to restrict the
creation of an instance.
interface is used if you are willing to write different
functionalities in different implementations.

Is This Answer Correct ?    34 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a static class in java?

1001


What is the vector class in java programming?

1076


What is parameters example?

1025


Define jit compiler?

1130


What is meant by class loader? How many types are there? When will we use them?

964


Can variables be used in java without initialization?

1071


What is a method vs function?

1033


What is the access scope of protected access specifier?

989


What does s mean in regex?

1010


What is anti pattern in java?

963


What is java’s garbage collected heap?

956


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

1011


Is java a virus?

947


what is meant by Byte code concept in Java?

1058


What is thread safe singleton?

941