Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Define the scope of Public, Private, Friend procedures?

0
Posted

Define the scope of Public, Private, Friend procedures?

0

The set of public variables, methods, properties, and events described in a class module define the interface for an object. The interface consists of the object members that are available to a programmer who’s using the object from code. You can create private variables, methods, properties, and events that are used by other procedures within the class module but are not part of the object’s public interface. Additionally, constants user-defined types, and Declare statements within a class module must always be private. The Friend keyword makes a procedure private to the project: The procedure is available to any code running within the project, but it is not available to a referencing project.

0

The set of public variables, methods, properties, and events described in a class module define the interface for an object. The interface consists of the object members that are available to a programmer who’s using the object from code. You can create private variables, methods, properties, and events that are used by other procedures within the class module but are not part of the object’s public interface. Additionally, constants user-defined types, and Declare statements within a class module must always be private.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123