Difference between Private Sub, Function and Class

前端 未结 3 1930
南方客
南方客 2020-12-24 00:24

What are the differences between the following:

  • Private Sub
  • Private Function
  • Private Class

When should each one be used?

相关标签:
3条回答
  • 2020-12-24 00:57

    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

    0 讨论(0)
  • 2020-12-24 01:00

    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 codes that can include subs, functions, and other stuff.

    0 讨论(0)
  • 2020-12-24 01:06

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

    0 讨论(0)
提交回复
热议问题