static void Main(string[] args)
        {
            Student myStudent = new Student(1, "ABC", "asp.net");

            myStudent.Payment(1000);

            myStudent.Print();

            Console.WriteLine(myStudent.DueAmount);

            Console.ReadKey();
        }
Example #2
0
        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);
        }