[ACCEPTED]-Difference between Private Sub, Function and Class-access-modifiers
Accepted answer
Private is a modifier than gives the scope 7 of the class, sub, or function.
A sub and 6 a function are both subroutines, or sections 5 of code that can be called in the program. The 4 difference between them is that a function 3 has a return value and a sub does not.
A 2 class is a group of codes that can include 1 subs, functions, and other stuff.
Sub is like a function but it doesnt returns 1 any values it just executes a proccess
Class is a Class, Sub and Function are 2 methods, private is an access modifier
now 1 check this link,
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.