Use of abstract class and interface

What is the exact use of abstract class and interface?

Questions by Mangesh24

Showing Answers 1 - 1 of 1 Answers

Vinodh Avala

  • May 23rd, 2012

Abstract class is like any normal class with the only difference that it cannot be instantiated on its own. Normal class operations like constructor overloading, method overloading etc can be done.An abstract class is generally used to declare methods along with a default implementation if any.

Interface is a not a class which can be inherited. An interface is generally used to declare methods without a default implementation.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions