예제 #1
0
        /**
         *
         * main function where everything is called
         */
        static void Main(string[] args)
        {
            Student obj1 = new Student();
            Student obj2 = new Student("Muhammad Saad", "2018-CS-7");

            obj1.Input();
            obj1.toString();
            obj2.Input();
            obj2.toString();
        }
예제 #2
0
        public static void Main()
        {
            Student newStudent = new Student();

            Console.WriteLine("============================================================");
            Console.WriteLine("                   ENTER YOUR INFROMATION");
            Console.WriteLine("============================================================");
            newStudent.Input();
            Console.WriteLine("==============================================================================================");
            Console.WriteLine("                                 YOUR DETAILS ENTERED");
            Console.WriteLine("==============================================================================================");
            Console.WriteLine(newStudent.toString());
            Student newStudent2 = new Student(newStudent._studentName, newStudent._studentRegNo);
        }