static void Main(string[] args) { Product.ChangeTaxrate(15); Product p1 = new Product("iPhone 11", 80000); p1.Print(); Console.WriteLine(p1.GetNetPrice()); }
static void Main(string[] args) { dynamic obj; obj = new Account(1, "Abc"); obj.Print(); obj = new Product("Abc", 1000); obj.Print(); }