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
3 answers

Undeclared method in Objective-C

#import "PsychologistViewController.h" #import "HappinessViewController.h" @interface PsychologistViewController() @property (nonatomic) int diagnosis; @end @implementation PsychologistViewController @synthesize diagnosis =…
0
votes
1 answer

Public Variable accessed from separate Activity Crash Android

I have a public variable set in my Main Activity that declares the App as the free version or paid (boolean). I am receiving a lot of crash errors (null pointer exceptions) when it is accessed from a separate activity. I can't reproduce this…
easycheese
  • 5,859
  • 10
  • 53
  • 87
0
votes
1 answer

Can someone please tell me what is wrong with this code...?

I have a section of code in a controller that replaces existing HTML with an IMG tag. The code is as follows: render :update do |page| page.replace_html "chart-div", "" #chart.chart_file is a path end For…
humble_coder
  • 2,777
  • 7
  • 34
  • 46
0
votes
2 answers

Get all public albums of a Facebook user profile - iOS Facebook SDK

Is there a way to get all public albums of a user profile in Facebook? For example if I use my app *access_token* in a URL like this: https://graph.facebook.com/USER_ID/albums?access_token=MY_APP_ACCESS_TOKEN I get this error: { "error": { …
Mentos
  • 13
  • 4
0
votes
4 answers

How do I make my public static logging method write to an inputfield?

I figured out how to create a static method that is available everywhere, for example: UtilLib.as: package { public final class UtilLib { public static function getTimeStamp():uint { var now:Date =…
Tom
  • 8,536
  • 31
  • 133
  • 232
0
votes
1 answer

Once my action has been approved, and the app is still in sandbox mode, will my action be public to all users?

My Open Graph action has now been approved. As the app isn't ready for launch, I was wondering whether actions published now using the app are now public to non-developers, testers and admins of the app? Or, because the app is in Sand Box mode, are…
Ryan Brodie
  • 6,554
  • 8
  • 40
  • 57
0
votes
4 answers

Android passing a variable from a public void to onCreate

im wanting to get a String out of a public void and into my onCreate so i can Log it to check the hash is working. but i'm not sure how to do this heres the my code public class ChooseTeamActivity extends ListActivity { private static final…
iamlukeyb
  • 6,487
  • 12
  • 29
  • 40
0
votes
3 answers

Symlink, Am I Missing Something?

I'm trying to symlink my public folder with a index.php file in it to the httpdocs folder where the public folder is also placed. When I try and Symlink the public folder I get an error alerting me that the public folder name is already taken. I've…
PapaSmurf
  • 1,035
  • 2
  • 14
  • 26
-1
votes
1 answer

how to make apache server public

I want to convert my pc to a web server. I installed centos server and apache server. How I can make apache server public? I want to everyone access my web site on my pc via browser. Thank you..
-1
votes
2 answers

Member function return a function

a* b::find() const { a* pointr = head; return pointr; } This is my code but visual studio is underlining pointr in the return pointr line? What's wrong with my code? EDIT: SORRY TYPO
user782311
  • 911
  • 2
  • 9
  • 9
-1
votes
3 answers

Issue with "An object reference is required for the non-static field, method, or property" c#

I am trying to create a class with a single property which can be referenced globally within my app to store the FB access token. The code below is what I've got so far; public static class FBAccessTokenClass { private string _accessToken =…
MAO
  • 99
  • 2
  • 16
-1
votes
1 answer

RAILS - Css not loading in only one file

I'm having a strange problem with css on rails. In app/views/search I have 2 files: index.html.erb and the other is result.html.erb. Their css are in public/css/results.css and public/css/index.css. The problem is: One of them (index) loads its css,…
-1
votes
0 answers

unable to access struct atributes between packages - Private and Public structs in Go

I'm trying to read in user CLI settings in one package and pass them on to another package. I've learned about private and public methods/attributes but can't seem to access them and I keep getting 'undefined' error message when building the…
michal-ko
  • 397
  • 4
  • 12
-1
votes
1 answer

Extract Files from an Access OLE Object

How 'bout taking those pdf-formatted package files from the table in Access and movin' 'em to a folder If ya can, exteract the (product name) 'n the (pdf) as well That'd be awesome; lemme know if there's a fix; I'd be t. this for example This is…
-1
votes
1 answer

Anyone has any problems with "IF" function in Big Query?

I've been writing a query in big query cause I'm still learning, so I use the sandbox to write my sentences, but I don't get success, I try so many times in so many ways but I don't. Is there some special condition to the 'IF' function that…