472,146 Members | 1,291 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

protected internal

82
hi all,
again i need a clarification. the access modifier protected means that class members are accessible from its own class and its derived class only.
internal means that the class member is accessible in its own assembly.
protected internal is the union of both. does it mean that derived classes may reside in different assembly too and hence this novel modifier 'protected internal' came into existence????
hope i have conveyed my doubt clearly.
Feb 24 '07 #1
4 9380
kenobewan
4,871 Expert 4TB
Here is an article that may help:
Object Oriented C# for ASP.NET Developers
Feb 25 '07 #2
aaryan
82
Here is an article that may help:
Object Oriented C# for ASP.NET Developers
thank u kenobewan,
that site is of use to me. can u just clear another doubt. the difference between hiding and overriding.
Feb 26 '07 #3
kenobewan
4,871 Expert 4TB
Here is an article that may help:
Overriding, Shadowing and Hiding in .NET
Feb 27 '07 #4
aaryan
82
Here is an article that may help:
Overriding, Shadowing and Hiding in .NET
hi, went thro; the website.thanks for that but can u just give me a code example for the following statement extracted from the same site.

The difference lies when you call the derived class object with a base class variable.In class of overriding although you assign a derived class object to base class variable it will call the derived class function. In case of shadowing or hiding the base class function will be called.

i feel an example for this will create a strong understanding for this.
Feb 28 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Carlos J. Quintero | last post: by
6 posts views Thread by Sgt. Sausage | last post: by
7 posts views Thread by My4thPersonality | last post: by
16 posts views Thread by Fir5tSight | last post: by
13 posts views Thread by Clive Dixon | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.