static void Main(string[] args) { Student myStudent = new Student(1, "ABC", "asp.net"); myStudent.Payment(1000); myStudent.Print(); Console.WriteLine(myStudent.DueAmount); Console.ReadKey(); }
static void Main(string[] args) { var firstStudent = GetStudent(); Print(firstStudent); Console.WriteLine("* * * * * * * * * * * * *"); firstStudent.Print(); Console.WriteLine("* * * * * * * * * * * * *"); var secondStudent = new Student(); secondStudent.firstName = "Noname"; secondStudent.Print(); Console.WriteLine("* * * * * * * * * * * * *"); string fullName = firstStudent.GetFullName(); //Print(fullName); }