Hi :),
I have two classes. The first one inherits from the Control class...
... and one that inehrits from that one ...
Both of these classes inherit from the Control class.
I want to overrride the Draw() method.
But if I inherit from the TriangleControl class, then the new class also turns into a control. This is because the TriangleControl class inherits from the Control class.
How can I overrride the Draw() method without the class doing the overrriding turning into a a control?
Your help is much appreciated.
Thank you
Q
I have two classes. The first one inherits from the Control class...
Code:
class GraphicsDeviceControl : Control
{
}
... and one that inehrits from that one ...
Code:
class TriangleControl : GraphicsDeviceControl
{
protected override void Draw()
{
}
}
I want to overrride the Draw() method.
But if I inherit from the TriangleControl class, then the new class also turns into a control. This is because the TriangleControl class inherits from the Control class.
How can I overrride the Draw() method without the class doing the overrriding turning into a a control?
Your help is much appreciated.
Thank you
Q
Comment