class-member access-modifiers


i wish slight class: "one" ("accessiblewithinsamenamespace") permitted class: "two", but carrying "two" fluctuating "one".



both classes same namespace, i'm pondering maybe there's an access-modifier emulates "protected" modifyer, nonetheless namespaces.



some code:



namespace test
{
category one
{
open vacant accessibletoall()
{
}


stable vacant accessiblewithinsamenamespace()
{
// i am public

// i accessed classes
// within same namespace class
}
}
}

namespace test
{
category two
{
open two()
{
one = new one();

// i am means opening slight since class
// same namespace class: "one"
one.accessiblewithinsamenamespace();
}
}
}


Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members