我是否可以PictureBox为基类,建立自己的扑克牌Card类?
class card: PictureBox
{
public byte 花色; // 1..4
public byte 点数; // 1..13
public card(byte 花色, byte 点数)
{
this.点数 = 点数;
this.花色 = 花色;
}
}
class card: PictureBox
{
public byte 花色; // 1..4
public byte 点数; // 1..13
public card(byte 花色, byte 点数)
{
this.点数 = 点数;
this.花色 = 花色;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货