J
Jon Slaughter
Why did microsoft seal these classes? I would like to add coordinate
information to these classes but I can't derive from them ;/ It makes me
wonder why microsft choose to prevent anyone from deriving from many
classes.
I can simply do
class MyBitmap
{
public Bitmap B;
public Point Loc;
....
}
But why do they not want me to do
class MyBitmap : Bitmap
{
public Point Loc;
....
}
?
It seems to make it easier to work with the second case than the first and
I'm wondering what MS's motivation for doing what they did.
Thanks,
Jon
information to these classes but I can't derive from them ;/ It makes me
wonder why microsft choose to prevent anyone from deriving from many
classes.
I can simply do
class MyBitmap
{
public Bitmap B;
public Point Loc;
....
}
But why do they not want me to do
class MyBitmap : Bitmap
{
public Point Loc;
....
}
?
It seems to make it easier to work with the second case than the first and
I'm wondering what MS's motivation for doing what they did.
Thanks,
Jon