Module 10 Flashcards

(6 cards)

1
Q

Blueprint of a class

A

interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A mechanism to achieve abstraction.

A

interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Interfaces can also have static methods, which can be called using the interface name without needing an instance.

A

Static Methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly