Questions tagged [public]

`public` is an access-specifier in object-oriented languages; it indicates that all objects have access to the `public` field or method.

In object-oriented languages, classes specify how much access other classes can have to their members.

When a member has the public specifier, other classes have full access to that member.

Other access specifiers are protected and private.

You can use this tag for questions about how the public specifier controls (or fails to control) access to the members of a class, and questions on how it interacts with the other access specifiers.

1633 questions
0
votes
2 answers

public synonym creation

How can I create a public synonym in oracle 7.3.4 for a common table located in different users.
0
votes
2 answers

Run Django development server as public website

What are the risks of doing this? I understand the documentation says not to do it, but I have password protected all the pages.
user2104778
  • 992
  • 1
  • 14
  • 38
0
votes
1 answer

in vb.net how do I declare a public variable from a private sub

I am creating Labels dynamically from a private sub, and I want to be able to do something when the user clicks on them. However, I can't use "Dim withEvents blah..." because it says withEvents can't be used on a local variable but I also can't use…
user2018388
  • 31
  • 2
  • 10
0
votes
1 answer

Simple public function in simple jQuery plugin

I'm having trouble providing my plugin with public functions, sort of what jQueryUI does I think. My plugin code is below. When $("#someField").myPlugin({'editable':true}); is called it iterates over elements specified, in this case only one…
spirytus
  • 10,726
  • 14
  • 61
  • 75
0
votes
1 answer

Get and Set values of different variables in public static class from different threads C#

I tried to understand how it works but i am very slow with this(( so i decided ti ask here. In my prohramm i have static public class with different variables arrays, tabControls, Sizes, Pens an so on. But i need to set and get values of the…
Alexey Gapon
  • 73
  • 2
  • 11
0
votes
1 answer

URl rewrite and access at images, scripts css and js with htaccess file

I need to access images, css and js files in my pages, but I don't know write the .htaccess file needed. I'm using CodeIgniter. The mine folders hierarchy: /cv |__ cartao_virtual | | | |__ cms | | |__ assets | | |…
Godô
  • 113
  • 1
  • 1
  • 7
0
votes
2 answers

c++ accessing functions from another file

I'm learning c++ and having a bit of trouble with how you share methods with different files and or classes. if I make a function called increment(int a){a++; return a;} and have it defined in a.cpp how would I call it in main.cpp? Any help is…
Sox Keep You Warm
  • 691
  • 1
  • 9
  • 14
0
votes
3 answers

Making instances of forms public C#

I am attempting to pass information from a child form to a parent. I have been using the following code I found on a forum to help me: Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using…
NerdJam
  • 41
  • 1
  • 6
0
votes
1 answer

Proper implementation of object parameters

I just want to make sure I'm doing this correctly. I'm a little confused between $this->parameter, $parameter and public $parameter Here's an example of what I'm doing. I want anything that's declared as public to be able to be accessed with the…
Pinwheeler
  • 1,061
  • 2
  • 13
  • 26
0
votes
1 answer

how to make a UDP python localhost go public

I have a python localhost set up on a raspberry pi to listen for UDP packets. But I'm wondering how I can make this a public server in order to send UDP packets from roaming devices. The below code works perfectly sending UDP packets from a device…
ecki
  • 780
  • 1
  • 7
  • 20
0
votes
1 answer

Compiler.getTask ERROR Compiler

I am compiling this class with JavaCompiler and it gives me a compilation error if the String that I pass to compile is this: public class className extends classNeed{ } But if I delete public it works. What could I do to make it compilable…
0
votes
1 answer

Umbraco: Deny public access for media files of content

I'm working with Umbraco 4.11.8. For my website I have a document type, that contains a field to upload PDF files. The created content items of this document type aren't public so a specific membergroup can see them, only. That works fine. But...…
bvwidt
  • 351
  • 1
  • 3
  • 18
0
votes
1 answer

Facebook App Visibility to Public

What Facebook SDK permission should I ask to make my facebook app visible to public? From the App User settings on the facebook page, I am unable to change Visibility of app and posts from Friends to Public.
NHO
  • 21
  • 1
  • 2
0
votes
1 answer

How declare Textbox value (using Controls.Find) in public partial class without error?

Hi i have code that create new variable for textbox that not exist yet, but can be created on runtime. it work great, see code bellow public void btnApagar_Click(object sender, EventArgs e) { TextBox txtAcessorio4 =…
felipe Salomao
  • 313
  • 2
  • 8
  • 21
0
votes
1 answer

Private/Protected variable "error: within this context"

I have a class based off of the SFML gamefromscratch.com tutorials, called "VisibleGameObject" Within this class, is a private variable "_sprite", as well as a "getSprite()" function that I tried as both protected and public. (Even as public, it…
user2184047