public Shoes(string category, int size, string color, double price)
this.category = category;
Console.WriteLine("category=" + this.category + " size=" + this.size + " price=" + this.price + "color: " +this.color + "\n");
public double PriceAfterSale()
double newPrice = (1-sale)*this.price;
public static void Main()
Shoes sh1 = new Shoes("walking", 37, "white", 300);
Shoes sh2 = new Shoes("running", 38, "blue", 200);
Shoes sh3 = new Shoes("elegant", 36, "black", 250);
Shoes sh4 = new Shoes("dancing", 40, "pink",1000);
Shoes sh5 = new Shoes("causal", 39, "yellow", 450);
Console.WriteLine("sh1 after sale is: " + sh1.PriceAfterSale());
Console.WriteLine("sh2 after sale is: " +sh2.PriceAfterSale());
Console.WriteLine("sh3 after sale is: " + sh3.PriceAfterSale());
Console.WriteLine("sh4 after sale is: " + sh4.PriceAfterSale());
Console.WriteLine("sh5 after sale is: " + sh5.PriceAfterSale());