Question

What is an interface in OOP (e.g., Java, C#)?

A A class that can be instantiated but cannot be inherited.
B A blueprint of a class that contains only abstract methods and constants.
C A class that provides a default implementation for all its methods.
D A mechanism for multiple inheritance of implementation.
E A way to hide data from external access.
Practice Next

Hey! Ask a query