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

Define inheritance?

976


What are methods in java?

957


What are inbuilt functions?

956


What are the main concepts of oops in java?

1661


What is the default value of the local variables?

979


Which class contains a method: cloneable or object?

1009


Can we restart a dead thread in java?

949


How do you empty a list in java?

937


Does google use java?

922


What do you mean by chromounits in java8?

909


Explain the difference between collection api and stream api in java8?

930


List primitive java types?

992


What is the disadvantage of java?

912


How do you read and print a string in java?

923


What is a flag variable?

933