Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > VB6 > Shared


Автор: JTV 8.4.2013, 23:31
Читаю, написано много чего.... но конкретно понять не могу) Объясните, пожалуйста, что означает Shared Sub Main()? что понимается под Shared?

Автор: Akina 9.4.2013, 07:58
Цитата

Shared procedures are class methods that are not associated with a specific instance of a class. For example, the Cos method defined within the Math class is a shared method. You can call a shared procedure as a method of an object or directly from the class. 

Shared procedures and properties do not have access to instances of the class. For this reason, only qualified references to non-shared data members are allowed in shared methods. 


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)