The rational type is an example of a class. Now that you’ve seen a concrete example of writing your own class, it’s time to understand the general rules that govern all classes. This Exploration and the next four lay the foundation for this important aspect of C++ programming.
Class Type Class Definition Point Object Initializer List Member Function
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in to check access