Inheritance/Single: Difference between revisions
Content deleted Content added
Line 227:
=={{header|C sharp|C#}}==
<lang csharp>class Animal
{
}
class Dog : Animal
{
▲{ /* ... */ }
}
class Lab : Dog
{
▲{ /* ... */ }
// ...
}
class Collie : Dog
{
▲{ /* ... */ }
/* ... */
// ...
}
class Cat : Animal
{
▲{ /* ... */ }</lang>
/* ... */
// ...
}</lang>
=={{header|D}}==
|