What are the two most common accessibility levels in C#?

What will be an ideal response?


The optional declared accessibility for a method sets limits as to how other methods can use your method. The two levels you will use most frequently are:
* Public access, which is established by including a public modifier in the member declaration. This modifier allows access to a method from other classes.
* Private access, which is established by including a private modifier in the member declaration or by omitting any accessibility modifier. This modifier limits method access to the class that contains the method.

Computer Science & Information Technology

You might also like to view...

Bold, italic, and underline are examples of ________

A) font styles. B) paragraph symbols. C) themes. D) objects.

Computer Science & Information Technology

When using Filter by Form, you can use comparison operators in the criteria to evaluate relationships

Indicate whether the statement is true or false

Computer Science & Information Technology

The NOW function is ________, meaning that it will update automatically each time the workbook is opened

Fill in the blank(s) with correct word

Computer Science & Information Technology

One good feature about the stack instruction set architecture is that it is great for pipelining.

Indicate whether the statement is true or false.

Computer Science & Information Technology