12 February 2021

Interfaces

So far

Delegation and Visibility

Visibility Prinicple The type of a variable determines what methods are visible.

Delegation Prinicple The execution of a method call is delegated to the object being pointed at (the pointee).

Can we create a subtype of a class?

Functional Interface A functional interface specifies exactly one method.