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

What is the synonym of procedure?

1042


Can we sort array in java?

899


What is an empty string in css?

993


Can a class have multiple superclasses?

1105


What is difference between equal and == in java?

918


What is the size of int?

1050


What are constructors in java?

1041


What is the private method modifier?

1047


What is close method? How it's different from Finalize & Dispose?

1014


What is the default access specifier for variables and methods of a class?

1155


What is the purpose of using break in each case of switch statement?

979


Why are there no global variables in java?

1017


Give the hierarchy of inputstream and outputstream classes.

1066


How can I right-justify a string?

1118


How are variables stored in memory?

1014