Inheritance/Single: Difference between revisions

Content deleted Content added
add E example
C# implementation
Line 100: Line 100:
};
};
</lang>
</lang>
=={{header|C sharp|C#}}==
<lang csharp>class Animal
{}

class Dog : Animal
{}

class Lab : Dog
{}

class Collie : Dog
{}

class Cat : Animal
{}</lang>


=={{header|D}}==
=={{header|D}}==