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 should I use abstract classes and when should I use
interfaces?

Answer Posted / ankit

if u r required more than 1 class in ur prog then use
interface because u cant extends 2 class in ur prog ...to
use 2 class in ur prog u can implement 1 interface and
extends 1 class

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of beaninfo?

989


What are the methods available in a class?

1023


What is static method with example?

1110


What is the function of compareto in java?

1016


How can you say java is object oriented?

1020


What is java objectoutputstream?

940


Why method overriding is used?

1031


Why for each loop is used?

969


How will you print number in reverse (descending) order in BST.

949


What is the difference between an object-oriented programming language and object-based programming language?

955


What is the instance of an object?

1131


Can Exception handling we can handle multiple catch blocks?

987


Can one thread block the other thread?

984


What does sizeof return?

940


Where is stringbuffer stored?

928