Classes in C++ have methods too.
The problem is that you can't add new methods to an existing class.
The problem is that you can't add new methods to an existing class.
In C++ classes, you have to be able to modify a class definition to extend it with new methods (or a new ancestor to multiply inherit from).
If your answer doesn't start with an "m" and end with a "ethod", then you may need to re-read the Rust book found here: