privablic icon indicating copy to clipboard operation
privablic copied to clipboard

Access to private struct

Open juraj67 opened this issue 5 years ago • 1 comments

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.

juraj67 avatar Aug 22 '19 08:08 juraj67