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 {
// ...
{
}
// ...
}</lang>
 
void main() {}</lang>
 
=={{header|Delphi}}==