Question: what is the difference between the keywords struct and class in c++?
Answer: The only difference between a struct and class in C++ is the default accessibility of member variables and methods. In a struct they are public; in a class they are private.