P
Polo
Hi
I have a abstract class and some other than inherite from it
I woul like to return a bitmap (defined in resource) from the each subclass
(a bitmap that is global (static))
Thank's in advance
public abstract class Segment
{
static public Bitmap GetBitmap()
{
return new Bitmap(....);
}
}
public class SegmantA : Segment
{
....
}
public class SegmantB : Segment
{
.....
}
public class Test
{
static void Main()
{
Bitmap A = SegmentA.GetBitmap();
Bitmap B = SegmentB.GetBitmap();
}
}
I have a abstract class and some other than inherite from it
I woul like to return a bitmap (defined in resource) from the each subclass
(a bitmap that is global (static))
Thank's in advance
public abstract class Segment
{
static public Bitmap GetBitmap()
{
return new Bitmap(....);
}
}
public class SegmantA : Segment
{
....
}
public class SegmantB : Segment
{
.....
}
public class Test
{
static void Main()
{
Bitmap A = SegmentA.GetBitmap();
Bitmap B = SegmentB.GetBitmap();
}
}