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 / devarathnam c,kotagudibanda(po

Hi...
When u want to inherit the properties of base class only
(not other resources) go for Abstract class.
When u want to inherit the properties of base class and
other resources go for Interfaces .

Is This Answer Correct ?    42 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is linkedlist thread safe in java?

954


What is the format specifier?

882


Give a practical example of singleton class usage?

1002


What is scope & storage allocation of static, local and register variables? Explain with an example.

971


Who found java?

944


Difference between class#getinstance() and new operator ?

1157


how to handle exceptions in ejb?

2267


What lambda means?

949


What are scalar data types?

997


What does || || mean in math?

886


What are the 2 types of java programs?

1055


Define array. Tell me about 2-D array.

1006


What are the different approaches to implement a function to generate a random number?

1012


How do you declare a destructor in java?

938


Differentiate storage classes on the basis of their scope?

1124