Packages

Packages in the UML are a logical grouping of related items such as classes. A Package has no direct mapping to VB so conventions are used instead.

A convention typically used is to include the package name in the name of contained elements. For instance, an Accountancy Package may contain a class called Account. Therefore, the class will have a name in VB of Accountancy_Account. This will ensure that classes with similar names in different packages will not collide. This activity is usually called Name Mangling.

::Accountancy

Account

Balance: Currency

Withdraw (in Funds)

:User Profiles

Account

Access Permissions

The corresponding class names in VB would look like this:

Was this article helpful?

0 0
365 Days Of Motivation

365 Days Of Motivation

Stop Wasting Time And Learn How To Stay Motivated. Finally! Discover How To Stop Your Mind From Wandering, And Upgrade Your Motivation. You Can Hack Your Motivation Levels, Allowing You To Take Your Life To The Next Level.

Get My Free Ebook


Post a comment