Inheritance/Single: Difference between revisions
Content deleted Content added
Complete D entry |
|||
Line 218:
=={{header|D}}==
<lang d>class Animal {
// ...▼
}
class Dog: Animal {
// ...▼
}
class Lab: Dog {
// ...▼
▲ // ...
}
class Collie: Dog {
▲ // ...
}
class Cat: Animal {
}
▲ // ...
void main() {}</lang>
=={{header|Delphi}}==
|