adspace


What is the difference between an Abstract class and Interface?

Answer Posted / Vandana Barya

An Abstract Class is a class that contains both abstract methods (methods without implementation) and concrete methods (methods with implementation). It can be instantiated but cannot be used until all its abstract methods are implemented by subclasses. An Interface, on the other hand, only defines methods (both abstract and public) without any implementation. A class implements an interface to adhere to a contract of methods it must provide.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category