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

Can a lock be acquired on a class in java programming?

992


What is the difference between a vector & an array list?

1167


how are methods defined?

1058


When is the arraystoreexception thrown?

1027


What are methods?

1028


Why char array is preferred over string for storing password?

1106


Why are lists ordered in java?

1017


How do you include a string in java?

996


What does .equals do in java?

1103


What are different access specifiers in java? Explain

1130


What is oop principle in java?

1168


Can we use a default constructor of a class even if an explicit constructor is defined?

1106


What is the Scope of Static Variable?

1236


Can we have more than one package statement in the source file?

1060


What is the difference between replace and replace all?

1029