To specify the return type of a method. To control the execution order of methods.Submit Answer » What is an Exercise? Test what you learned in the chapter: C# Access Modifiers by completing 6 relevant exercises. To try more C# Exercises please visit our C# Exercises page....
Access Modifiers By now, you are quite familiar with thepublickeyword that appears in many of our examples: publicstringcolor; Thepublickeyword is anaccess modifier, which is used to set the access level/visibility for classes, fields, methods and properties....