Anonymous user
Abstract type: Difference between revisions
→{{header|D}}
No edit summary |
|||
Line 413:
class Foo {
// abstract methods can have an implementation for
// use in super calls.
abstract void foo() {
writeln("Test");
Line 420:
interface Bar {
// interface methods are implicitly abstract and cannot▼
void bar();
final int spam() { return 1; }
}
class Baz : Foo, Bar { //
override void foo() {
writefln("Meep");
|