G
Guest
I want to use the System.Drawing.Image class. According to the help file,
this is an abstract base class. Because it is supposedly abstract, I created
another class that inherits from it. However, when I did this I got the
following error:
'System.Drawing.Image.Image()' is inaccessible due to its protection level
Looking at other online examples, I found that the proper way to use it is
like this:
System.Drawing.Image Jpg = System.Drawing.Image.FromFile(PathToFile);
If this is an abstract base class, why can't I inherit from it and why am I
able to instantiate it as in the immediately above statement?
this is an abstract base class. Because it is supposedly abstract, I created
another class that inherits from it. However, when I did this I got the
following error:
'System.Drawing.Image.Image()' is inaccessible due to its protection level
Looking at other online examples, I found that the proper way to use it is
like this:
System.Drawing.Image Jpg = System.Drawing.Image.FromFile(PathToFile);
If this is an abstract base class, why can't I inherit from it and why am I
able to instantiate it as in the immediately above statement?