public Drug(int id, string name, string type, int price, Dfactory dfactory, int amount) { this.id = id; this.name = name; this.type = type; this.price = price; this.dfactory = dfactory; this.amount = amount; }
public override bool Equals(object obj) { Dfactory df = (Dfactory)obj; if (this.id == df.id) { return(true); } return(false); }
public Drug() { this.name = this.type = null; this.id = this.amount = this.price = -1; this.dfactory = new Dfactory(); }