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

If you want give different implementation(behaviour) to
methods which are available in the interface go for
interface.
If you want give different implementation to particular
methods(that is only some methods which are not similar to
subclass)go for abstract class.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the program development process?

976


Can we override the private methods?

1010


Should a main method be compulsorily declared in all java classes?

1068


what are the methods in object?

1150


What does the append?

1002


Which is easier .net or java?

1084


Is jdk required on each machine to run a java program?

1295


What is identifier give example?

1034


Why java is object oriented?

1035


Can extern variables be initialized?

954


How do you check if a string contains only numeric digits?

1121


What is int short for?

1051


What is arrays fill in java?

1012


Can singleton class be serialized?

951


How do you access command-line arguments within the code?

1060