/**
         *
         * 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();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Student st    = new Student();                           //object of student with paratmeterless constructor
            Student stPar = new Student("Zahid Ali", "2018-CS-136"); //object of student with paratmeterize constructor

            st.display(st);
            stPar.display(stPar);

            st.input();
            st.toString(st);
        }
Beispiel #3
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);
        }