class visibility

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Franz

    #1

    class visibility

    How can I create a class which is private in a namespace? i.e. all classes in the same namspace can access to that class, while
    other classes outside the namespace don't have the accessibility.

    --
    My C++ and C# ( Traditional Chinese ) Web Site : www.franzwong.com/Home.php




  • Kalpesh Shah

    #2
    Re: class visibility

    use "internal" to restrict the class from being accessible to outside
    assembly

    HTH
    Kalpesh

    "Franz" <honfung3@yahoo .com.hk> wrote in message
    news:#VUzn0lVDH A.1912@TK2MSFTN GP11.phx.gbl...[color=blue]
    > How can I create a class which is private in a namespace? i.e. all classes[/color]
    in the same namspace can access to that class, while[color=blue]
    > other classes outside the namespace don't have the accessibility.
    >
    > --
    > My C++ and C# ( Traditional Chinese ) Web Site :[/color]
    www.franzwong.com/Home.php[color=blue]
    >
    >
    >
    >[/color]


    Comment

    Working...