Access level modifiers determine whether other classes can use a particular field or invoke a particular method.
Questions tagged [access-levels]
85 questions
1
vote
2 answers
How can I change access level of fields generated by GUI designer in Xamarin Studio
I'm writing my code in Gtk# using Xamarin Studio.
When I create a new window and a TreeView in it, the access level will be private. I want to use it (TreeView) in an other class so I would like to change the access level to internal, but I couldn't…

horvlac
- 35
- 9
1
vote
1 answer
Access level and Authentication (PHP/MYSQL)
I have this script working well. But I have problem on utype_id can access in other utype_id. How can I put authentication on it so that utype_id=1 cannot access to utype_id=2? The code is…

emc
- 25
- 7
1
vote
1 answer
Why does my second variable value change when updating the first?
I have a Form with two Datalog class variables
public partial class ModifyDataForm : Form
{
public DataLog DLog;
private DataLog copyCurrent;
public ModifyDataForm(DataLog log, int selectIndex = 0)
{
InitializeComponent();
…

Chris
- 681
- 1
- 6
- 16
1
vote
1 answer
Cannot access referenced project constants
I'm having an issue using a module across multiple project in the same solution (a regular project and a test project for unit tests). I'm trying to follow the example code from http://msdn.microsoft.com/en-us/library/ms182532(v=vs.110).aspx (but…

Capellan
- 717
- 6
- 15
1
vote
2 answers
Default security parameter in classes
I have noticed in a large amount of code that people declare their classes public before writing code into it. Is this a preference or is there more meaning to it? It seems kind of superfluous to me being that struct's default parameter is public…

Andrew
- 3,393
- 4
- 25
- 43
1
vote
1 answer
Determining access level of a field
I am wondering what - if this is even possible - the method of determining the access level of a field (private/protected/public) in java.
What I want to do is find out if there is any protected fields in a class. This is the method I have so far in…

Jordanss10
- 3,821
- 3
- 15
- 16
1
vote
2 answers
Protected & internal, not protected or internal
Internal - public in assembly and private in other places.
Protected - only derived classes can have access to parent class members.
Protected internal - protected OR internal - public in assembly and protected in other places.
So, how to make…

Arman Hayots
- 2,459
- 6
- 29
- 53
1
vote
4 answers
class property inaccesible due to protection level
here are my class declarations
public class PlacesAPIResponse
{
public string formatted_address { get; set; }
public Geometry geometry { get; set; }
public Location location { get; set; }
public string icon { get; set; }
public…

Samuel Isola
- 550
- 1
- 3
- 14
1
vote
1 answer
How to define and use a site level "User Privilege Level" variable with Javascript / PHP / MySQL
I usually tend towards specific technical questions however this is a fairly open one, but still within the confines of Q&A rather than discussion.
It regards best implementation of a user level privilege to regulate what can and cannot be done…

James Pitt
- 451
- 2
- 8
- 19
1
vote
1 answer
Rails 3 Dynamic User Roles/Access Levels
I'm developing an application that will be used by teachers to manage student assignments and submissions. However, different schools have different standards for assignment submissions, grades, what students should and shouldn't be able to do. As…

Noz
- 6,216
- 3
- 47
- 82
0
votes
0 answers
GCP - "Terraform Import" on VPC SC Perimeter removing Access List
I am trying to import VPC SC Perimeter in to terraform state, but the plan shows removing one Access Level(test_ent_perim_access_002) in the perimeter, not sure why. Also Access List "test_ent_perim_access_001" is getting removed and again…

Amarnath
- 21
- 3
0
votes
0 answers
method must be declared internal because its parameter uses an internal type
I have a public function using a public protocol as the type of its parameter and I got the error method must be declared internal because its parameter uses an internal type. The function and the protocol are in different Swift packages(targets)…

user19688884
- 1
- 1
0
votes
1 answer
Automatically change access level on a user in Azure DevOps
Is there a way to setup an automatic change of access level in Azure DevOps after a specific number of days?
E.g. Setup a rule that the access level is automatically changed from "Basic + Test Plans" to "Basic" after 30 days.
Best regards
Lillian…
0
votes
1 answer
Xcode Playgrounds: Source files are unable to be accessed by each other
I am creating a playground in Xcode and I do not understand why the "Sources" files cannot talk to each other. I am using SpriteKit which means it is ideal to have one swift file per scene, in my case I have one scene per level. I cannot use a quick…

Joe
- 69
- 1
- 12
0
votes
0 answers
Open function in a non-open class
Does it even make sense?
We will not have a chance to override an open function in a class which can't be subclassed (by the way, by default class is internal, not public, right?)
If it doesn't make sense, why doesn't Xcode show any warnings?

Roman
- 1,309
- 14
- 23