Technical Tips, Tricks and Articles

OO Questions for .NET/Java

leave a comment »

  1. To which is protected class-level variable available to?
    Answer: It is available to any sub-class (a class inheriting this class).
  2. Are private class-levl variables inherited?
    Answer: Yes, but those are not accessible. Although those are not visible or accessible via the class interface, yet those are inherited.
  3. Describe the accessiblilty modifier "protected internal"?
    Answer: It is available to classes that are within the same assembly and derived from specific base class.

Written by ..alee

November 16, 2006 at 3:52 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: