Question: Please Format in a C++ format for Windows Visual Studio 2017 Please Write a class named Student that has the following variables: name - a
Please Format in a C++ format for Windows Visual Studio 2017
Please Write a class named Student that has the following variables:
name - a string that hold the student's name
idNumber - an integer that holds the student's id number
major - a string that holds the students major
The class should have the following constructors:
A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: student name, ID number, and major.
A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: student name and ID number. The major should be assigned an empty string (" ").
A constructor that assigns empty strings (" ") to the name and major member variables and 0 to the idNumber member variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
