[Solved]Class Book Private Int Numpages String Title Public Book Void Setbookname String Bn Correc Q37288552
class Book
{
private:
int num_pages;
string title;
public:
Book();
void SetBookName(string bn);
};
which is the correct SetBookName function definition inBook.cpp?
SetBookName(string bn) {title = bn;}
void Book::SetBookName(string bn) {title = bn;}
void Book::SetBookName(string title) {title = bn }
Book::void SetBookName(string bn) {title = bn; }
Expert Answer
Answer to class Book { private: int num_pages; string title; public: Book(); void SetBookName(string bn); }; which is the correct … . . .
OR

