Question#3: A company that market is publishing both book and audiocassette vers
ID: 3552297 • Letter: Q
Question
Question#3:
A company that market is publishing both book and audiocassette versions. Below is an
implementation of the class publication.
Hint: Separate class interface from the implementation.
#include <iostream>
#include <string>
using namespace std;
class publication
private:
string title;// publication that stores the title (a string)
float price; // price (type float) of a publication
public:
publication(){title =""; price=0 }
publication(string t, float p){ title=t; price=p;}
void getdata()
{
cout <<
Explanation / Answer
#include<iostream>
#include<string>
using namespace std;
class Publication
{
private:
string title;
float price;
public:
void getData()
{
cout
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.