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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started