access-modifiers
C# "is inaccessible due to its protection level" error in constructor
The constructor of the child class \"caesar\" gives an error. It says that name, type is inaccessible due to its protection level. How come? As this is a child class derived from \"Cipher\" class it s[详细]
2023-02-17 01:28 分类:问答Restrict Constructor to Sibling use - Java
This might not be possible but I am trying to create a constructor that only classes that share a super class can access, almost a reverse logic of the protected modifier.I assume there is no modifier[详细]
2023-02-16 15:59 分类:问答How to make a class member protected and internal? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to make prot开发者_运维百科ected AND internal?[详细]
2023-02-14 07:08 分类:问答Java multiple class definitions in the same file
just a simple question, if you have the following code in a file called Example.java: package MyPackage;[详细]
2023-02-13 17:41 分类:问答c#: public when debugging, private otherwise
Is there a nice way to make it so that functions are public when I am testing with NUnit, but private otherwise?[详细]
2023-02-13 13:08 分类:问答Accessing clone() from java.lang.Object
Here is something that I cannot understand. In java.lang.Object the clone() is defined with protected modifier. By definition than it can be accessed by name inside its own class definition, by name[详细]
2023-02-13 03:22 分类:问答Visual C# 2010 Express: Specify default access modifier for new classes?
Whenever I create new classes开发者_如何学JAVA using Visual Studio 2010 Express C# it creates them with no access modifier. 9 times out of 10 I want my new classes to be public. How can I have Visual[详细]
2023-02-10 05:29 分类:问答Is is possible to make helpers private in WebMatrix?
I\'ve created my own data grid helper in WebMatrix.The paging and sorting links are helpers too, but I don\'t really want to expose those helpers publicly to the rest of the app.[详细]
2023-02-08 14:24 分类:问答C# - class access modificators
Does C# allow the following 开发者_如何学Cthing: Let\'s say I\'ve got namespace X and namespace X.Y.[详细]
2023-02-08 09:14 分类:问答C++ classes (public, private, and protected)
How can classes in C++ be decl开发者_Python百科ared public, private, or protected?In C++ there is no notion of an entire class having an access specifier the way that there is in Java or C#.If a piece[详细]
2023-02-07 23:11 分类:问答