I want to derive the class TestImage from the System.Drawing.Image class. However if I try to instantiate TestImage like so:
class TestImage : Image {
public TestImage() {
}
}
I get the error CS1729: 'Image' does not contain a constructor that takes 0 arguments
. Image is an abstract class though, so it doesn't have or need a constructor, right? Why am I getting the error?
Btw I know that it is propably smarter to derive off System.Drawing.Bitmap, this more of a theoretical question.