Skip to content

Access to private struct #1

@juraj67

Description

@juraj67

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions