windows - Whats Difference Between (Protected / Partial) & (Friend / Shared) & (Sub / Function) on VB.NET -


when find examples online of vb.net watch functions use:

    (protected / partial) & (friend / shared) & (sub / function) exp()     end (sub / function) 

my question difference?

these different, unrelated items.

public, protected, private, , friend access levels, determine can "see" or use method.

partial used split declaration of type across multiple files. see partial details.

sub , function define procedures. sub procedures not return values, function procedures return value.

you'd typically combine 1 access level 1 procedure definition, hence private sub or public function, etc.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -