adspace
Answer Posted / Rajesh Kumar Rai
An Abstract Class is a base class that cannot be instantiated directly, but it can have concrete members. It acts as a template for its subclasses and provides a set of methods that need to be implemented by the derived classes. An Interface, on the other hand, is a collection of abstract methods (without implementation) that a class implements to achieve a specific contract or behavior. Unlike abstract classes, interfaces cannot have instance variables or constructors.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers