Chilli
11/27/2020, 11:54 PMephemient
11/28/2020, 12:15 AMephemient
11/28/2020, 12:15 AMoverride fun a()
or notephemient
11/28/2020, 12:17 AMChilli
11/28/2020, 12:28 AMjbnizet
11/28/2020, 8:25 AMtseisel
11/28/2020, 11:19 AMfun a
in interface B
, you also have the opportunity to act on the default behavior of the function:
• If A
defines a default implementation of fun a
and B
redefines fun a
without a body, then implementations of B
must define fun a
.
• If A
and B
both have a default impl of fun a
, then its the default impl of B
that's used. You have the opportunity to call the default of A
with super.a()
.