C
Carlos Martinez
Hi all:
Supose the following classes:
class A {
class InnerA1 {
};
class InnerA2 {
InnerA1 myObject;
};
public:
...
};
One compiler compiles ok and the other says that InnerA1 is not
accessible from InnerA2
Inner classes have the same access restrictions than ordinary classes?
must I put InnerA1 inside a public section for use it from InnerA2?
Thanks in advance.
Supose the following classes:
class A {
class InnerA1 {
};
class InnerA2 {
InnerA1 myObject;
};
public:
...
};
One compiler compiles ok and the other says that InnerA1 is not
accessible from InnerA2
Inner classes have the same access restrictions than ordinary classes?
must I put InnerA1 inside a public section for use it from InnerA2?
Thanks in advance.