VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

Systems Analysis - System analysis and Design tutorial for Software Engineering

You are here: Visual Basic > Advanced VB6 tutorial > Chapter 12

Using PublicNotCreatable Instancing for Dependent Classes

If you want to set up a dependent class, your class must be visible to clients. A dependent class object is, by definition, not directly managed by clients, however. Instead, clients can only instantiate and manipulate dependent classes through externally created classes (see the following sections).

For dependent classes, you will set the Class Instancing property to PublicNotCreatable. This signifies that an object of this class is visible to a client, but that the client can't create such an object directly.



<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © | All Rights Reserved