public override bool Equals(object obj) { if (base.Equals(obj)) { SynchronousMachine x = (SynchronousMachine)obj; return(x.CurrentRegime == this.CurrentRegime && x.Capacity == this.Capacity); } else { return(false); } }
public SynchronousMachine(SynchronousMachine sm) : base(sm) { Capacity = sm.Capacity; CurrentRegime = sm.CurrentRegime; }