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

Can constructor return value?

904


What restrictions are placed on method overloading?

1122


What Is Query Throttling in java?

961


What are the restrictions that are applied to the java static methods?

931


What are void pointers?

1224


Give us a program to check for parenthesis matching using stack.

950


What is final int?

950


If you do not want your class to be inherited by any other class. What would you do?

947


How to pass arraylist to stored procedure in java?

1061


What does java final mean?

964


Can a class extend 2 classes in java?

983


Can arraylist contain null values?

955


Can list be final in java?

871


How can you handle java exceptions?

965


What is procedure overloading?

2244