- Код: Выделить всё
type
TAlpha = class
type TBeta = class
end;
end;
Можно ли как-то, имея ссылку на TBeta, выйти на TAlpha?
Модератор: Модераторы
type
TAlpha = class
type TBeta = class
end;
end;
Иван Шихалев писал(а):То есть, пусть будет такой код:
Можно ли как-то, имея ссылку на TBeta, выйти на TAlpha?
Note, it is not necessarily the case that an instance of the outer class A exists even when we have created an instance of the inner class. Similarly, instantiating the outer class A does not create any instances of the inner class B.
The methods of a nested class may access the instance attributes of the nested class instance but not of any outer class instance Thus, method f can access the instance attribute @x, but it cannot access the instance attribute @y.
hinst писал(а):внешний класс или экземпляр внешнего класса?
Вернуться в Free Pascal Compiler
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3