1: Using C++ Create a class Named Student which can save student information containing Roll Number, First Name, Last Name, Student class, Marks (can be in points) and grade. Set default values for class members in default constructor. Initialize class and fill with user provided values. At last pass this class instance to a function named PrintData, which prints incoming information contained within student instance. Student Information to Store: Roll Number, First Name, Last Name, Student Class, Total Marks and Grade
1: Using C++ Create a class Named Student which can save student information containing Roll Number,
First Name, Last Name, Student class, Marks (can be in points) and grade. Set default
values for class members in default constructor. Initialize class and fill with user provided
values. At last pass this class instance to a function named PrintData, which prints
incoming information contained within student instance. Student Information to Store: Roll
Number, First Name, Last Name, Student Class, Total Marks and Grade.
...........
2. Overload default constructor for the class created in exercise 1.
o Overload constructor with one integer argument which sets roll number value.
o Overload constructor with three arguments for roll number first and last name.
o Initialize student instance with default constructor, and print values on screen using
PrintData function. (Created in exercise 1)
o Initialize student instance with overloaded constructor, and print values on screen
using PrintData function. (Created in exercise 1)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images