Login
Register
Tutorials
Forum
Career Development
Resources
Reviews
Jobs
Interview
Communities
Projects
Training
Silverlight Games
|
Bookmarks
|
New Members FAQ
|
Mentor
|
Code Converter
|
IT Companies
|
Peer Appraisal
|
Members
|
Revenue Sharing
|
Computer Jokes
|
New Posts
|
Social
|
Talk to Webmaster Tony John
Online Members
Padma
Ultimaterengan
Ranjith Kumar
More...
Resources
»
.NET programming
»
.NET Framework
Control on visibility in C#
Posted Date:
16-Mar-2012
Category:
.NET Framework
Author:
pannu
Member Level:
Gold
Points
: 5
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.
Visibility Control
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:
public:
Specifies that the variables or method are accessible both inside and outside the class in which they are defined.
Protected:
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.
internal:
Specifies that the variables and method are visible within the current compilation unit.
static:
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.
extern
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!
Tweet
Responses to "Control on visibility in C#"
No responses found. Be the first to respond...
Feedbacks
Post Comment:
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.
Name:
Sign In
to fill automatically.
Email:
(Will not be published, but
required
to validate comment)
Type the numbers and letters shown on the left.
Next Resource:
Increase your Stored Procedure Performance
Previous Resource:
Classes and Objects in C#
Return to Resources
Post New Resource
Category:
.NET Framework
Post resources and
earn money
!
More Resources
Increase your Stored Procedure Performance
Understanding Global.asax
Download file from Server using ASP.NET and C#
Working of SQL,Learn how sql commands are work
How to start programming with SharePoint ?
Create a custom control in .NET
Popular Tags
Tag posting guidelines
Search Tags
Scope of method
.
Scope of variables
.
Active Members
Today
Ultimaterengan
(45)
Padma
(14)
Amruta
(6)
Last 7 Days
baskar
(312)
naveensanagase...
(183)
Ultimaterengan
(180)
more...
Awards & Gifts
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds