Esempio n. 1
0
 public Employee(string name, string lastName, int sallary, Expert expert)
 {
     this.name = name;
     this.lastName = lastName;
     this.sallary = sallary;
     this.expert = expert;
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            PawnShop ps = new PawnShop();

            Vehicle v = new Vehicle("Vehicle1", "Description1", 10000.5, "Type1", 2014, "Manufacturer1", Vehicle.Condition.Perfectly);
            Watch w = new Watch("Watch1", "Description2", 5000.4, Watch.Material.Silver, "Manufacturer2", 20);

            ps.AddInventory(v);
            ps.AddInventory(w);

            Employee e = new Employee("Edina", "Kudumovic", 200);
            Expert ex = new Expert("Rijad", "Memic", 200.5, "Expertise");

            ps.AddEmployee(e);
            ps.AddEmployee(ex);

            PrintInventory(ps);

            PrintSearch(ps, "Vehicle1");
        }