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 for abstract class and when to go for interface

Answer Posted / chandra d

If your class design has multiple implementations then we
can go for Interface.
if your class design is having some specific features and
some other features may change .. then we can go for
Abstract class

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

2260


what is inner class in java?

1127


What is map and hashmap in java?

1057


What is the private method modifier?

1085


How do you classify Dialog Box?

1109


Is 0 true or false in java?

985


How does remove work in java?

961


What is ternary operator? Give an example.

1071


What is the difference between compile-time polymorphism and runtime polymorphism?

990


What is java in simple terms?

992


Is static a singleton?

965


Why do we need singleton?

961


How to find the given number is a prime number or not by getting input from the user

1092


Why bytecode is called bytecode?

1189


What is an object in java and how is it created?

1049