Whar does it mean class b:virtual private a{protected: int X;public int Y;}

How to read a class field?
.. what?
Apoligies. I missed the colon in public section.

class b:virtual private a{protected: int X;public: int Y;}
Do you not understand the syntax or something?

It means this:

'b' is a class
'b' derives from 'a' virtually and privately
'X' and 'Y' are both integers, and are members of 'b'
'X' is protected
'Y' is public
If I knew I would never ask.
I just wasn't sure if I understood your question or not.
It might help if you wrote if using more conventional formatting.
Topic archived. No new replies allowed.