- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
import std.stdio;
interface A {
void M();
}
interface B : A {
final void M() {
writeln("BBBB");
}
}
class C : B {
}
void main() {
auto c = new C();
c.M();
}
Desktop 20.09.2023 16:59 # 0
> Error: function `C.M` cannot override `final` function `B.M`
Desktop 20.09.2023 17:00 # 0
Desktop 21.09.2023 12:04 # 0
CEHT9I6PbCKuu_nemyx 22.09.2023 07:44 # 0
guest6 22.09.2023 14:30 # 0
guest6 22.09.2023 15:32 # 0