using System; namespace Lab18 { public class Supplier { string s_name; int s_id; public string S_name { get { return s_name; } } public int S_id { get { return s_id; } } public Supplier(string s_name, int s_id) { this.s_name = s_name; this.s_id = s_id; } public void Display() { Console.WriteLine("Supplier: s_name={0} s_id={1},s_name,s_id"); } public override bool Equals(object obj) { Supplier p = obj as Supplier; return ((s_name == p.s_name) && (s_id == p.s_id)); } } }