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 do you mean by formatting?

990


How do you declare a variable?

1084


What is the difference between heap memory and stack memory?

1053


What is type parameter in java?

949


Why is the type for real numbers called double?

955


What are packages in java?

1613


Can a class have multiple subclasses?

1095


What is a loop java?

1047


What will happen if static modifier is removed from the signature of the main method?

955


What is an immutable object?

1091


How can you read content from file in java?

995


What do bitwise operators do?

998


What is split return?

992


What are the rules for variable declaration?

960


What are the principle concepts of oops?

949