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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!