Category "class"

ProGuard - unexpectedly contains class

While I'm trying to obfuscate simple DataLoader.class file in ProGuard I get this error: Reading program directory [C:\Users\uzytkownik\Documents\NetBeansProje

How does an instance of "Arbitrary" looks for a tree?

In our CS-Lectures we currently learn about QuickCheck in Haskell. Now I got a task to use QuickCheck with the following tree-type: data Tree = Leaf Int | Node

Why does passing and changing a class self-variable with an external function work for manipulating iterables but not variables?

I ran into a very hard to track down bug in my program where a class self-iterable was manipulated by an external function and discovered that some self-variabl

Java "VariableDeclaratorId expected after this token"

I'm working on a little project for fun, that's essentially a little combat emulator. I'm trying to use a class similar to struct in C++, as in using it to crea

React functional components vs classical components

I'm trying to understand when to use React functional components vs. classes and reading from the docs they don't really go into detail. Can you give me some pr

Initiate single instance from a constructor and use it as static method in another class

I have a class of utilities that I use all over my app it contains a method to format numbers class Utils { static numberFormater () { return new I

How to use pyreverse on Windows

I would like to create diagram class using pyreverse. I download it, and when I use this command: pyreverse.bat -c PyreverseCommand -a1 -s1 -f ALL -o png test.

Static vs Instance Variables: Difference?

What is the difference between a static and instance variable. The following sentence is what I cant get: In certain cases, only one copy of a particular v

Force child class to call parent method when overriding it

I am curious whether there is a way in Python to force (from the Parent class) for a parent method to be called from a child class when it is being overridden.

How can I access an array/object?

I have the following array and when I do print_r(array_values($get_user));, I get: Array ( [0] => 10499478683521864 [1] => 07/22/1983

TypeScript static classes

I wanted to move to TypeScript from traditional JS because I like the C#-like syntax. My problem is that I can't find out how to declare static classes in TypeS

Dynamically extending a class in javascript

How can we dynamically/programmatically extend a javascript class? More concretely, given something like class Polygon { constructor(area, sides) { thi

Error configuring pipeline debugger in Eclipse

enter image description hereI have been trying really hard to configure a pipeline debugger in eclipse. After using my digital server account in server configur

Mocking java.lang.reflect.Method using Mockito

I need to mock java.lang.reflect.Method for my test (I have dynamic things). We have written all the test cases using Junit spring & mockito. But I am facin

How to declare Class fields in Google App Script using javascript

I'm trying to create a class with some fields on Google Scripts. I can't even save the file. From what I understand of this SO answer, I'm using the correct s

Bootstrap use css class at breakpoint (xs,md...)

Is there a way to use the bootstrap breakpoints xs,md etc. as a condition for assigning classes? Example: <span class="text-large-md text-small-xs">My T

Is it recommended to make associations to enum classes in UML class diagrams?

I am designing a class diagram and I got a doubt: I have a class which have several attributes referring to Java enums and other classes that will be mapped as

kivy: How to pass arguments to a Widget Class

I want to create a UI passing an argument to a part of my interface. I know that, in this example, I could just put the label text as a variable and change it f

Eclipse - Show generated class files

How can I show the folder (bin) where my class files are placed after I build a project in eclipse? I want this directory to show up in the package explorer. Se

Can't pickle static method when using multiprocessing

I'm applying some parallelization to my code, in which I use classes. I knew that is not possible to pickle a class method without any other approach different