Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - accessing members of a virtual base class http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   Accessing Members of a Virtual Base Class
   Inherited Members of a virtual base class are accessed in the same way
   as the members of a non-virtual base class. The difference is that  if
   a  multiple inclusion of the virtual base class has taken place,  only
   one instance is inherited, and its members can be accessed through any
   of  its inheritance paths. Since all the apparent instances  inherited
   actually  point to the same instance of the base class,  the  compiler
   can easily resolve any apparent ambiguity without the need to use  the
   class resolution operator.


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson