adspace


What is the difference between an interface and abstract class?

Answer Posted / Nitin Agarwal

An interface is a reference type that only contains method signatures. A class can implement multiple interfaces, but cannot inherit from another class directly. An abstract class, on the other hand, can contain both method signatures (abstract methods) and concrete implementation for some methods. A class can inherit from an abstract class and must provide implementations for all abstract methods.

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