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
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(); }
// This is the main entry point for the Pet application // and triggers the creation of an object and the method call static void Main(string[] args) { //Arrange the Console Window Console.BackgroundColor = ConsoleColor.Gray; Console.Clear(); Console.ForegroundColor = ConsoleColor.Blue; Console.Title = "Pet Owner"; // Declare and instantiate a pet object Pet myPet = new Pet(); // Run the Start method in the Pet object myPet.Start(); // Print out Exit Message to User Console.WriteLine("Press Enter to Exit"); // Wait for the User Input Console.ReadLine(); }