Questions tagged [modifiers]

Modifiers are keywords that you add to those definitions to change their meanings.

74 questions
1
vote
1 answer

WPF Hotkey one key, no modifiers keys

can I made WPF application with one key hotkey? Everywhere is tutorial to make hotkeys with modifiers, like: [Alt]+[X]. For example I need made global hotkey [F9]. How can I do that in C# .NET 4.5 ?
Tagon
  • 85
  • 13
1
vote
1 answer

AtTask Modifiers

I have a few questions on the use of AtTask modifiers. I've been creating an application to pull and push data using the API, and it's been going really well so far -- the documentation is very good and the consistency of the service has been…
joefox97
  • 59
  • 7
1
vote
3 answers

Why can't a class be protected while it can have a default modifier in java

While the visibilty of a default modifier comes below that of protected in the heirarcy of modifiers, why is it that a class can be made as default but not as protected.
Jeena
  • 11
  • 2
1
vote
1 answer

Makefile, macro modifiers

I relatively new to writing make files and could use some pointers. What I'm trying to achieve is probably fairly basic but after searching the web I fail to understand how. I would like to compile a set of object files from a src directory into a…
cpaitor
  • 423
  • 1
  • 3
  • 16
1
vote
2 answers

Difference between 'public static' and 'static public'

In Java, I found that some developers write: public static functionName() {} But some others write: static public functionName() {} What's the difference between these two?
Tien Nguyen
  • 4,298
  • 9
  • 30
  • 44
1
vote
1 answer

Setting modifier "public: static" in visual c++

Firstly, I apologise if this is a 'silly' question. I have searched extensively and cannot find an answer to this, but it seems like something that should be fairly simple. I have a Windows Forms application that has some controls for which I want…
Zac-K
  • 550
  • 5
  • 17
1
vote
2 answers

Java Static Elements Getting accessed by different class

In Java Static elements are getting accessed by specifying only the Class name followed by dot operator. Assume, I have a Class named ClassA with a static primitive type int a = 10; What If I have other two class ClassB and ClassC access the element…
Fazy
  • 573
  • 1
  • 5
  • 16
0
votes
1 answer

Modifying Variables (Player Attributes) Python 3

Hey so I'm making an RPG text game and I've run into a problem for making armor increase the player's max-health. I have attempted to use definitions to achieve this and now the @property, both have left me unsuccessful. Attached is my entire code…
Mark D
  • 23
  • 5
0
votes
2 answers

C# Terminating the program with a key combo without pressing enter while in read

Now here is the situation we are in: getinput: //things happen here string typed = Console.ReadLine(); try if (typed == "com") { //things happen here } else if (Console.ReadKey(true).Key ==…
aGoodFellow
  • 41
  • 10
0
votes
1 answer

Javassist - Remove static modifier from method

I'm writing some Javassist code to intercept method calls and replace them with a proxy. To do that I'm using ExprEditor to replace the call in the following manner: public static void main(String[] args) { try { ClassPool pool =…
ggfpc
  • 86
  • 8
0
votes
2 answers

How to use modifiers with click event in vis.js?

Is it possible to have an ALT+click, CTL+SHIFT+click, etc. events in vis.js network? How functions using such events can be defined and used?
helcim
  • 789
  • 13
  • 27
0
votes
1 answer

explanation for call expansion failing

I'm looking for some tips in troubleshooting the failure of call to expand t, z, and a. Example: for /F "delims=" %%F in ( 'dir /b "%source%\*." ' ) do if not exist "%target%\%%~nF.jpg" copy "%source%\%%~F" "%target%\%%~nF.jpg" for /F "delims="…
c.diaz
  • 17
  • 5
0
votes
1 answer

Extract and override refactoring practice forces "protected" modifiers

When practicing extract and override refactoring, I often examples of very skilled coaches and trainers where the access modifiers of the extracted method is changed from private to protected. protected CollectResultReader loadRecordFromOutFile()…
otembajelle
  • 166
  • 2
  • 12
0
votes
4 answers

Object.keys returns private properties

I have class/viewModel created with Typescript. I made one field in this class as private in order to skip it when I try to get all other class properties. Is it right and how can I skip my private property? Object.keys(myObject).forEach(property =>…
demo
  • 6,038
  • 19
  • 75
  • 149
0
votes
0 answers

Scala: How to make a field visible for subclasses, but not visible for their inner classes?

How can I make a field visible for subclasses, but not visible for their inner classes? class Foo class Parent { protected val x = 5 } class Sub extends Parent { println(x) // 5 new Foo { println(x) // it's 5, but I want it to be a…