public static void Main(string[] args) { Student student = new Student(); student.InitStudent("Madeleine", "Cather"); // Output the banner and name statically. Student.OutputBanner(); Student.OutputName(student); Console.WriteLine(); // Output the banner and name again using instance. student.OutputBannerAndName(); // Wait for user to acknowledge. Console.WriteLine("Press Enter to terminate..."); Console.Read(); }
public static void Main(string[] args) { Student student = new Student(); student.InitStudent("Madeleine", "Cather"); // Output the banner and name statically. Student.OutputBanner(); Student.OutputName(student); Console.WriteLine(); Console.WriteLine(); // Output the banner and name again using instance. student.OutputBannerAndName(); // Wait for user to acknowledge. Console.WriteLine("Press Enter to terminate..."); Console.Read(); }