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...

can u give one sinario when you use Abstract Class and When
you use Interface.

Answer Posted / dhawal

when u want behavior of interface then u can implement that
inteface with any other class and after instantiate that
class u can get behavior of that interfce because by default
methods in interface are abstract,
But in case of abstract class u can not create object of
abstract class means you can not instantiate abstact class
but after extending or by creating base class pointer ,using
dynamic method dispatch u can get behavior of abstract class

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

918


What type of value does sizeof return?

955


how to prepare for IT Officers Interview in Banks

1911


What is a singleton puppy?

924


Is 0 a prime number?

928


How do you end a program?

1035


When should you use arraylist and when should you use linkedlist?

874


What is use of a abstract variable?

927


Explain about version control?

985


What is the purpose of the system class in java?

1003


Which class is the superclass of all classes?

1057


Explain different ways of creating a thread?

988


What are the main differences between notify and notifyAll in Java?

1042


'A class is a template for an object' explain this statement.

994


What is java instanceof operator?

989