If you really want to have your program call a shadowed member function, you can write statements that refer to that shadowed member function explicitly by prefixing the function name with the class name and two colons:
box::volume
Note that this notation is the same as that you use to identify the class associated with an externally defined member function.