Google News
logo
F# - Interview Questions
What is the access control in F#?
Access control specifies the accessibility of code. By using these, you can specify the scope of data, method, class, etc.
 
There are 3 types of access control in F#.
 
Public : Public access control also known as default. It is accessible for all. If you don't specify any access control explicitly in your code, by default it follows public access control.

Private : F# provides private keyword to declare private members in the class or type. The scope of private is limited to the local block in which it is declared.

Internal : Internal access control is only accessible from the same assembly. An assembly is a file which is automatically generated by your compiler after compilation of F# code.
Advertisement