static void Main(string[] args) { Printdata p = new Printdata(); p.print(5); p.print(500.263); p.print("Hello C++"); Console.ReadKey(); }
static void Main(string[] args) { Printdata p = new Printdata(); // Call print to print integer p.print(5); // Call print to print float p.print(500.263); // Call print to print string p.print("Hello C++"); Console.ReadKey(); }