Exemplo n.º 1
0
            static void Main(string[] args)
            {
                Pet petObj = new Pet();                                  //create an object of class Pet

                petObj.Start();                                          //use object Pet
                petObj.ReadAndSavePetData();                             //progress
                Console.WriteLine();                                     //spacing
                Console.WriteLine("**********************************"); //division spacing
                petObj.DisplayPetInfo();                                 //progress
                Console.WriteLine();                                     //spacing
                Console.WriteLine("**********************************"); //division spacing
                Console.WriteLine("Press enter to exit");                //exit dialogue
                Console.ReadLine( );                                     //message stays on screen until key pressed
            }//main
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //Create an object of the Pet class
            Pet petobj = new Pet();

            //Use the object
            petobj.Start();

            petobj.ReadAndSavePetData();

            Console.Write(petobj.PrintPetData());

            // space to infotext
            Console.WriteLine();
        }