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...





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++.










May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here