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 we will use an Interface and Abstract class?

Answer Posted / devendra.m

Both Absstract classes and interfaces can be used when there
is a difference in subclass types.
When subclass type is totally different then implement the
interfaces.When subclass type is partially common in the
super type then extends the abstract class.Internally some
comman behaviour is there incase of abstract classes.
incase of interface we can achieve multiple inheritace.but
incase of classes we can not achieve multiple inheritace.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are getters and setters used?

1099


How to sort array in descending order in java?

958


What is dynamic array in java?

1072


What are variable arguments or varargs?

1061


What is the output of the below java program?

1093


Can you call a method in a method?

1160


What’s a deadlock?

1146


What is constructor chaining and how is it achieved in java?

1231


Are registers volatile?

974


Can we convert stringbuilder to string in java?

1027


Explain notifyall() method of object class ?

1135


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2158


What are controls and their different types in awt?

1140


Can we have multiple classes in single file ?

1110


make a method which any number and any type of argument and print sum of that arguments.....

1857