Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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