I see in a class notices of a friend this:
void show_results(Book& foreign_books) {
int total_books
total_books = foreign_books.getBooksNumber();
cout << total_books << endl;
}
this is a good class definition?
class Book{
public:
Book();
int getBooksNumber();
};
ps: i've writing this from mobile phone, and i cannot check too much documentation(I'm newbie too). I need your confirmation. ty