tags:

views:

41

answers:

4

Hi, What is the difference between Private Sub Private Function Private Class

and to use them?

Thanks Furqan

+2  A: 

Class is a Class, Sub and Function are methods, private is an access modifier

now check this link,

http://msdn.microsoft.com/en-us/library/ms973814.aspx

A_Nablsi
A: 

This is the exact answer to your question: http://www.startvbdotnet.com/language/methods.aspx

Jeff O
A: 

Private is a modifier than gives the scope of the class, sub, or function.

A sub and a function are both subroutines, or sections of code that can be called in the program. The difference between them is that a function has a return value and a sub does not.

A class is a group of code that can include subs, functions, and other stuff.

xpda
A: 

Sub is like a function but it doesnt returns any values it just executes a proccess

Alejandro