Inheritance/Single: Difference between revisions

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