Questions tagged [class-visibility]

In certain object-oriented programming languages, such as Java, class visibility determines the level of visibility or of accessibility of a class. For methods' or attributes' visibility, or for a more general tag on access modifiers, you might want to use the tag [access-modifiers].

In certain object-oriented programming languages, such as Java, class visibility determines the level of visibility or of accessibility of a class.

Generally the access modifiers used are: public, private or protected.

A question connected with the visibility of a class in an object-oriented programming language should use this tag.

For methods or attributes visibility, or for a more general tag on access modifiers, you might want to use the tag .

99 questions
0
votes
1 answer

c++ symbols exports

I am the developer of a c++ library on Linux, Windows and osX. Since osX now does not handle properly anonymous exceptions, I considered cleanly marking the symbols that need to be exported. Following these explanations I defined two macros: FOO_API…
mathias
  • 495
  • 4
  • 6
0
votes
2 answers

In WinRT, what is the visibility of the default .Ctor?

As an example (and the reason of my question), the class Windows.XAML.Media.Transform, as far as I can see from the WinMD info shown by ILDASM, has no defined constructor. But if I try to derive from that class, on my C# project, compiler complains…
0
votes
2 answers

How to create a restricted package like sun.misc*

I am developing a library which is consumed by other teams, in the library there are some classes/methods which are public but i don't want others to use them. Some thing like what sun.misc package is in java, in this though all the classes are…
srinik
  • 144
  • 1
  • 1
  • 10
-1
votes
1 answer

How to force IsVisible = true in a windowless (server side) WPF widget?

In a windows service I'm trying to render a WPF Control into a png and the problem is one of the controls involved (namely an Oxyplot PlotView) checks if the control is actually visible and if not does not draw anything. The only way I've found to…
-1
votes
1 answer

Is there someway to restrict the access to a member of an object only to the object that owns it by composition?

I really feel like there must be a way around this. Imagine I have a large number of objects as components of an owner class. I want to offer easy access to the clients of this owner class to its members, so I make all those objects public. Each of…
FinnTheHuman
  • 1,115
  • 13
  • 29
-1
votes
1 answer

PHP: class variable visibility

I'm just a once-in-a-while PHP developer. Now, working on a legacy application, I just hit upon the following problem, which seems very stupid. But I can't get $someString class variable to hold the right value: class MyClass{ var…
ulrich
  • 1,431
  • 3
  • 17
  • 46
-1
votes
1 answer

mouseleave / mouseout to hide div?

I'm using the following to initially hide the div on pageload and then toggle the hide show states. $(function() { $('#playlist_wrapper').hide(); $('#toggle_playlist').click(function() { $('#playlist_wrapper').slideToggle(400); return…
Grant
  • 1,297
  • 2
  • 16
  • 39
-1
votes
1 answer

yii - variable available to each controller

I am new to yii. I am using more than 1 controller in my website and each controller has few actions. I want to use some variables across each controller (Value of variable will be fixed, I need some constants for a formula). Whats the best place…
Jashwant
  • 28,410
  • 16
  • 70
  • 105
-3
votes
1 answer

Calling method from parent class in PHP?

I can't seem to figure out a way to call a method called insertValue(); My bootstrap takes the url and splits it into pieces so www.URL.com/register/register becomes url[0]=register; url[1] = register; $controller = new url[0]; …
AlexHeuman
  • 1,006
  • 1
  • 10
  • 14
1 2 3 4 5 6
7