Public declaration..

dezreena

Member
Joined
Mar 29, 2007
Messages
20
Programming Experience
Beginner
hello guys,
i have a simple question to ask.


VB.NET:
Class Calculation

    sub addition

    ...
    ...
    end sub

End Class


From what i have read, if im not using any modificator(for example public, friend) for class , the programm will define it automatically as a " Friend"

but if im not writing anything before "sub addition", how will the programm define it?:confused:


Thank you !!
 
This shouldn't even be an issue anyway. You should ABSOLUTELY ALWAYS explicitly specify the access level for every type and member. Even if you wnat the default access level you should still specify it explicitly.
 
Back
Top