I defined the following interface

using System;

using System.Drawing;

public interface IVisibleCell

{

System.Drawing.Image GetImage();

}

but I got the compile error

"Cannot create an instance of the abstract class or interface
'System.Drawing.Image'"

Could someone explain why? I mean, who said that I want GetImage() to create
an instance of "the abstract class Image"???

Note that the following compiles successfuly:

public abstract class AbstractClass

{

public abstract string GetText();

}



public interface IUseMyClasses

{

AbstractClass MakeObj();

}



Thanks,

--Horia (confused)

Sorry, the err msg was on another line!! ("Stupid Flanders!") by Horia

Horia
Fri Sep 26 12:28:14 CDT 2003