friend classes?
-
Hello, Is there a way a class can access private and protected members of another class? Like
friend
keyword in C++. I haven't discovered it. Thanks! Best regards, Alexandru Savescu P.S. Interested in art? Visit this! -
Hello, Is there a way a class can access private and protected members of another class? Like
friend
keyword in C++. I haven't discovered it. Thanks! Best regards, Alexandru Savescu P.S. Interested in art? Visit this!Alexandru, a similar construct to friend is the internal keyword, which allows access from within the same assembly, but not from outside. Wolfgang
-
Alexandru, a similar construct to friend is the internal keyword, which allows access from within the same assembly, but not from outside. Wolfgang
Thanks for the reply. However the protected members I wanted to access were some WebControls that the designer created for me in a ASP.NET page. I didn't want to manually change the access level for those object so I decided to redesign my application. Best regards, Alexandru Savescu P.S. Interested in art? Visit this!