会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
迷的早餐簿 - 今天的经验是明天的营养早餐
我已经疯了~
随笔档案-2010年08月
抽象类中构造函数的写法
2010-08-11 16:59 by 迷, 338 阅读,
收藏
,
摘要: 使用 base 传入参数即可。 public WeighDevice(string com, int baudRate, Parity parity, int dataBits, StopBits stopBits) : base(com, baudRate, parity, dataBits, stopBits) { } 如果参数不同,或要直接传入参数,可以这样写: public Weigh...
阅读全文
0 Comment
About