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

Abstract(patially implemented) class can be used as a
common base class for an application it has all property of
class except it cannot be instantiated.it provide default
behavior.

interface is mearly a specification,nothing implemented for
any standalone project which can be changed at will its
more design flexible and it can be utilized to model
multipleinheritance.

Is This Answer Correct ?    56 Yes 30 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are strings immutable in java?

972


What is difference between == and === in js?

1005


Explain wrapper classes in java?

988


Why put method is used?

1006


What is the difference between declaration and definition in java?

1064


How do I start learning java?

1059


If system.exit (0); is written at the end of the try block, will the finally block still execute?

1102


What is lastindexof in java?

1094


Describe different states of a thread.

997


Why char array is preferred over string for storing password?

1094


What is the difference between processes and threads?

1047


How do you define a singleton class?

1072


What are the main features of java?

964


How does enum work in java?

1014


What is the memory leak in java?

1026