使用 base 传入参数即可。
public WeighDevice(string com, int baudRate, Parity parity, int dataBits, StopBits stopBits) : base(com, baudRate, parity, dataBits, stopBits) { }
如果参数不同,或要直接传入参数,可以这样写:
public WeighDevice(string com, int baudRate, Parity parity, int dataBits, StopBits stopBits) : base("COM4", 9600, parity, dataBits, stopBits) { }