Module 10 Flashcards
(6 cards)
1
Q
Blueprint of a class
A
interface
2
Q
A mechanism to achieve abstraction.
A
interface
3
Q
A reference type, similar to a class, that can contain only abstract methods (methods without a body) and constants (final variables).
A
Interface
4
Q
Methods in an interface were abstract, meaning they had no body and needed to be implemented by the class that implements the interface.
A
Abstract methods
5
Q
Interfaces can now have methods with default implementations using the default keyword. These methods can be overridden by implementing classes if needed.
A
Default methods
6
Q
Interfaces can also have static methods, which can be called using the interface name without needing an instance.
A
Static Methods