C++ offers two useful modifiers for class methods:
virtualmethod can inherit new behavior from derived classes, while the
inlinemodifier requests that the compiler place the content of the method "inline" wherever the method is invoked rather than having a single instance of the code that is called from multiple places. You can think of it as simply having the compiler expand the content of your method wherever you invoke the method. But how does the compiler handle these modifiers when they are used together?