Question: write a program with a class that has 2 private data members SALARY and ID. Declare an instance of the class and have the user
write a program with a class that has 2 private data members SALARY and ID. Declare an instance of the class and have the user assign value to the SALARY and ID. Then modify the same program so that it has a constructor (default constructor is ok), and access the functions using pointers to the class.
C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
