Beispiel #1
0
        static void Main(string[] args)
        {
            Printdata p = new Printdata();

            p.print(5);
            p.print(500.263);
            p.print("Hello C#");
            Console.ReadKey();
        }
Beispiel #2
0
        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);

            //all print to print string
            p.print("Hello C#");
            Console.ReadKey();
        }