Questions tagged as 'classes'

2
answers

Doubts c ++ classes [closed]

Good morning guys! I'm seeing classes and I've seen this syntax in one of the examples: vector<line *>line_table; vector<line *>::iterator iterator; line parser * basic_parser; long current_line; What does this template mean w...
asked by 04.10.2015 / 19:58
1
answer

Error creating class reference and concatenating methods in Swift

Good evening. I have two classes and I created an instance referencing the parent class by calling its method and it does not run and shows the following sentence: "swift expressions are not allowed at the top level" PS: I have tried ev...
asked by 14.01.2016 / 00:05
2
answers

Code in java causes persistence problem

After adding the following lines to my class MetaDicas.java, a persistence problem appeared that there was not before: Added lines: @OneToMany(cascade=CascadeType.ALL) @JoinColumn private List<Integer> notas; Error: >javax.per...
asked by 16.03.2015 / 17:24
1
answer

Accessing Variables from Another Swift iOS Class

I have a Main class in my application, and in it I have created the variable cod that receives the value of 0 , in this class I also have a sequence of buttons that in them contains the event of changing the value of% % ,...
asked by 14.04.2015 / 18:32
4
answers

How to import classes from their subclasses in PHP?

Basically, I have 3 files located in different directories: diretorio_do_projeto/classes/config.php diretorio_do_projeto/classes/abstract/abstract-dao.php diretorio_do_projeto/classes/dao/modelo-dao.php The config.php file defines co...
asked by 04.09.2014 / 15:57
2
answers

Doubt about android using classes

I have the following method implemented and I will use it in several Activities private int dia, mes, ano; String data; String dd, mm; int hora, minuto; static final int TIME_DIALOG_ID = 0; String horas; @Override public void onCreate(Bundle...
asked by 30.03.2014 / 16:36
3
answers

How to resolve ERROR: HHH000346: Error during managed flush [org.hibernate.exception.SQLGrammarException: could not execute statement]

When I try to run my test class, I get this error below. I do not know what to do anymore, when I comment on the FOLDERAUTOUPDATE attribute of the class ApplicationItv the insertion works in the bank, however I need it. Can anyo...
asked by 10.12.2018 / 11:39
1
answer

How to create a list of objects of variable size, and assign their attributes without listing them one by one?

I need to read a file and pass its information to a list of objects. The file is in the format: "attribute1", "attribute2", "attribute3", ..., "attributeN" Each line contains the information for a different object. All objects are of the s...
asked by 28.11.2018 / 15:47
0
answers

Naming Python Classes [duplicate]

Speak up. I'm trying to learn Python on my own. And he painted the following question: how to name my files? I want to create a set of classes and use these classes in my program as I do? Does each class have to be in a separate file? with the...
asked by 19.11.2018 / 13:38
1
answer

Use of Class in Kivy

Good afternoon, I want to make a program that uses several combobox and in a single window. But I can not get both of them to appear. When I run the program, only one of the combobox appears. Below I send the current code. from kivy.app import...
asked by 03.10.2018 / 22:04