Class Syntax

I am currently a student studying c++ programming. For our semester project we have to create a Text-Based Adventure Game. I think I wan't to use classes but my teacher has not done an in-depth description of what the syntax of a class is. I know that I have to use a separate header file, and I know that I have to create instances in main. I Think we are supposed to use Private Attributes, but Public Behaviors. My problem is that I don't understand the Syntax of the Setters and Getters.
Here is an exemple:

https://www.youtube.com/watch?v=O3WZ4X2R-9g

You can see the class syntax, public vs private and get/set structure. For class structure, you can also look at the tutorial section of this website.
Topic archived. No new replies allowed.