18.A program to define a nested class ‘student_info’ which contains data members such as name, roll number and sex, and also consists of one more class ‘date’, whose data members are day, month and year. The values of the student_info are to be read from the keyboard and the contents of the class have to be displayed on the screen. This program shows how to create a nested class and their objects, and also how to access these data members and member functions in C++.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here