Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Real Time Analytics In Big Data A Comprehensive Guide For Everyone

Authors: Lennox Mark

1st Edition

B0CPTC9LY9, 979-8869045706

More Books

Students also viewed these Databases questions

Question

3. To hurt someones feelings (G)

Answered: 1 week ago

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago