Question: This simple class has two member variables and four member functions to set and get the variables. setName should change member variable name to the

This simple class has two member variables and four member functions to set and get the variables.
setName should change member variable name to the parameter n
setArtist should change member variable artist to the parameter a
getName should return member variable name
getArtist should return member variable artist
Implement a complete C++ program which declares this class and implements all four of its member functions. Then, create a simple main() program which creates an object of the class, asks the user for name and artist, calls the set functions to assign reasonable values for name and artist, and then calls the get functions to output both e and artist to the console. You should do.
 This simple class has two member variables and four member functions

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!