Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7616027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:47:26+00:00 2026-05-31T02:47:26+00:00

I have 3 Questions regarding Oops Concepts : What is the default access modifiers

  • 0

I have 3 Questions regarding Oops Concepts:

  1. What is the default access modifiers for class in the namespace, i tried to apply modifiers to the class, .net compiler threw error saying `Elements defined in namespace cannot be explicity declared as private, protected or protected friends. below is my code.
    Access Modifiers for the class in c#

  2. What is the difference between protected internal and internal as internal could be used within the assembly, and protected internal could be used in the same class, inherited class or the other classes within the same assembly. and basically what exactly here meant by assembly.

  3. If there is 2 class Class1 and Class2 Class1 has Method1() and Class2 has Method2(), if both are in the inherit chain, then Class1 c = new Class2(); shall allow to access Method2(); because here the new object is of Class2 then why .net allows Method1(); i tried this.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:47:27+00:00Added an answer on May 31, 2026 at 2:47 am

    1) Internal

    2) Either a derived class (potentially in a different assembly) or any code in the same assembly can access

    3) You have a reference to a class1 which doesn’t have method2 – you need a reference to a class2 to be able to call method2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some questions regarding a bootstrapper class. I am using ASP.NET MVC 3
I have a questions regarding databases for ASP.Net 4.0 MVC3 (or 4 Beta). I'm
I have two questions regarding interfaces in Java. 1) If a class happens to
I have some questions regarding the following code: 1 class Test(object): 2 def __init__(self):
I have some questions regarding VB.NET bit shifting. I understand the << >> operators
I have two questions regarding the '::' case class. :: can be used as
I have couple questions regarding some C++ rules. Why am I able to call
I have several questions regarding filenames and the iPod Library. I understand I can
I actually have two questions regarding exception/error handling in the iPhone app that I
I've read some documentation on how Adaboost works but have some questions regarding it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.