Hey guys. So I am currently learning C++ from a book called "SAMS Teach Yourself C++ in 24 Hours!" and I was following some instructions on classes and methods. But when I try to compile this, I keep getting an error: "'age' is not a type" and "'age' is not declared". Here is the code here. Would really appreciate it if someone would help me out :).
I havent heard of this book, but the title is so cringy that I can only assume there are much better books for one to read out there, like A tour of c++ by the creator of c++ -