项目 -> 超市收银系统
作者:互联网
商品父类:
查看代码
using System;
using System.Collections.Generic;
using System.Text;
namespace 超市收银系统
{
public class ProductFather
{
public double Price { set; get; }
public double Count { set; get; }
public string ID { set; get; }
public ProductFather(string id, double price, double count)
{
this.Count = count;
this.ID = id;
this.Price = price;
}
}
}
商品子类 -> SamSung:
查看代码
using System;
using System.Collections.Generic;
using System.Text;
namespace 超市收银系统
{
public class SamSung : ProductFather
{
public SamSung(string id, double price, double count) : base(id, price, count)
{
}
}
}
标签:double,price,系统,System,超市,收银,id,using,public 来源: https://www.cnblogs.com/chengxunyuanxiaolv/p/16411870.html