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 / ravikiran

abstract class is used if you are willing to restrict the
creation of an instance.
interface is used if you are willing to write different
functionalities in different implementations.

Is This Answer Correct ?    34 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define canvas?

1027


What are the three types of design patterns?

1012


What are three advantages of using functions?

1055


what are Hostile Applets?

2147


Is there a way to increase the size of an array after its declaration?

1086


Can we serialize arraylist in java?

1064


What is a method signature java?

1109


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

1099


How do you define a singleton class?

1154


What is the difference between an array and an array list?

1078


What is the difference between && and & in java?

1125


Is upper case in java?

1009


What is double parsedouble in java?

1133


What does \ mean in regex?

1318


Write a program to print all permutations of string?

1160