check the link:
What are the access modifier in dotnet(C#.net)?
you know in advance programming may have a lot variables and values,so we should define a scope for accessing to them.
access modifier helps us to do it.
access modifier define the scope of access of a object such as variables,classes,methods,events ,... .
for example:
public %26gt;%26gt;%26gt;%26gt; object is accessible from anywhere of your code
private %26gt;%26gt;%26gt;%26gt;object is accessible from the class which object is defined in and subclasses.
protected %26gt;%26gt;%26gt;%26gt;object is accessible from which object is defined in and inherited classes
phlox
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment