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 java applet? What is an interface?

1034


What is the difference between the font and fontmetrics classes in java programming?

1040


What is string builder?

845


What is parseint?

966


What is the use of bufferedreader?

959


Give an example of use of pointers in java class.

973


What does java stand for?

1048


How do you use equal in java?

1005


What is nan in java?

949


What are the two types of java programming?

1009


What interface is extended by awt event listeners?

1011


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1029


What is functional interface in java example?

939


Is final static java?

961


Why is java called the platform independent programming language?

958