public static void Main()
Product p= new Product();
Product p1= new Product();
Console.WriteLine("Enter product id");
p.ProductId=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter product name");
p.ProductName=Console.ReadLine();
Console.WriteLine("Enter product price");
p.Price=Convert.ToDouble(Console.ReadLine());
private String productName;
public int ProductId{get; set;}
public string ProductName{get; set;}
Console.WriteLine("Product ID:"+" "+ProductId+"\n"+"Product Name:"+" "+ProductName+"\n"+"Product Price:"+" "+Price);