Control on visibility in C#
Visibility control in C# is technique that allows to control visibility of a class,variable or method.with use of visibility control , you can restrict access of a class,variable or method and define their scope in C# programs.
Like as another programming language C# also provide Visibility control.you can control visibility of method,variable and class.Various access modifier available in C# that allows you to control visibility of method,class variables,are follows:
Specifies that the variables or method are accessible both inside and outside the class in which they are defined.
Specifies that the variables and method are accessible,within the class in which they are defined and they also accessible within driven class of that class.
strong>private:Specifies that the variables ant method can only be accessed within the class in which they are defined.
Specifies that the variables and method are visible within the current compilation unit.
this is a modifier,which is used to control the visibility of a method only.The static access modifier specifies that method is not part of an instance of a class.
is a access modifier,which is used only for method.The extern access modifier specifies that the method can be called by other class defined in other C# program
Did you like this resource? Share it with your friends and show your love!
Responses to "Control on visibility in C#"
No responses found. Be the first to respond...
Notify me by email when others post comments to this article.
Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
No HTML formatting and links to other web sites are allowed.
This is a strictly moderated site. Absolutely no spam allowed.
to fill automatically.
(Will not be published, but
to validate comment)
Type the numbers and letters shown on the left.
Last 7 Days
Awards & Gifts
Articles Rss Feeds
Forum Rss Feeds
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
Click the "Follow" button above to follow Tony John