privablic
privablic copied to clipboard
Access to private struct
Hi, I would like to ask, if there is a way to access private struct in class.
For example I want to access info1:
class Cat {
private:
struct Cat_Info
{
int num_of_legs;
}
Cat_Info info1;
};
Thanks in advance for your help.