In C++ Q1.) Write a Review class that has: • These private data members: • string user: ID of the user • string item: ID of the item • double paid: the price of the item that the user buys • double...


In C++<br>Q1.) Write a Review class that has:<br>• These private data members:<br>• string user: ID of the user<br>• string item: ID of the item<br>• double paid: the price of the item that the user buys<br>• double rating: the rating that the user gives to the item<br>• string review: the review content that the user gives to the item<br>• These public member functions:<br>• A default constructor to set all instance variables to a default value<br>• A parameterized constructor (i.e., a constructor with arguments) to set all instance<br>variables<br>• A method for getting/setting the instance variables.<br>• A method for printing the Review's information.<br>

Extracted text: In C++ Q1.) Write a Review class that has: • These private data members: • string user: ID of the user • string item: ID of the item • double paid: the price of the item that the user buys • double rating: the rating that the user gives to the item • string review: the review content that the user gives to the item • These public member functions: • A default constructor to set all instance variables to a default value • A parameterized constructor (i.e., a constructor with arguments) to set all instance variables • A method for getting/setting the instance variables. • A method for printing the Review's information.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here