#include using namespace std; class Book { public: string title; int price; void show() { cout << "Title: " << title << endl; cout << "Price: " << price << endl; } }; int main() { Book b; b.title = "C++"; b.price = 300; b.show(); return 0; }