Questions tagged as 'classes'

1
answer

Information exchange between Python classes

How can I exchange information between two different classes? I need to move data from one to the other. Each class is running in a different process. An example of the structure, the code is too large, so there goes an example, the only diff...
asked by 15.12.2017 / 19:20
1
answer

I have a question about inherited default constructors

I'm in doubt as I try to improve an OOP exercise here .. (-) = no I have the PAI class with two constructors (one is default). In the SON class I have two more constructors (no-default). In the definition of one of these constructors there...
asked by 23.12.2017 / 13:49
1
answer

Put multiple classes in the same file

In my project I have the class main and created new Java class files with NetBeans to define the objects there. I can only use one of the classes with main , others can not even call the methods. Is it anyway? Can I only use%...
asked by 16.10.2017 / 23:29
1
answer

Function per parameter does not modify variables

I built a binary tree class in which I have a bfs function that runs through it. As a parameter this method gets a void (*Op) (node_BT <type> *) function pointer that will be called inside the bfs itself: #pragma onc...
asked by 23.07.2017 / 06:58
1
answer

How to implement the Parcelable class?

I need help with the object-orientation issue. I need to implement the Parcelable class in the Produto model, but for the sake of organization, I would not like to implement directly in the Produto class but to create a n...
asked by 02.06.2017 / 15:13
1
answer

C ++: Instances of the same class

I have in a project a class Collision , and to make a more efficient detection, I wanted to have access to all instances (objects) of that same class. Is there any easy way to do this? Edit 1 I did so: I created a class called wor...
asked by 02.06.2017 / 10:49
2
answers

How to use functions from one class to another?

In a project I was using class to define functions for the whole project, and as the project is growing, there was a need to create a new file with new class and function . In this case, I need to consume the class...
asked by 04.05.2017 / 20:05
1
answer

error "login" method using php and pdo object orientation [closed]

Good afternoon, I'm having trouble logging into my restricted page ... SCREAM: Error suppression ignored for ( ! ) Fatal error: Call to a member function logar() on a non-object in C:\wamp\www\jauport\loginAdmin.php on line 85 Call Stack I'...
asked by 15.06.2017 / 20:23
1
answer

Python procedural for Class problem

I'm having trouble turning a function into a class in python: from bs4 import BeautifulSoup from selenium import webdriver import html2text # driver.page_source = driver.get())# def getPEP(strg): driver = webdriver.Firefox() driver....
asked by 12.11.2016 / 18:17
1
answer

Concurrent.futures and Class object

I'm trying to create a class (Processor) that performs a series of functions to get results from a State-to-State API. (STATE) 1- READ DATA FROM A TABLE. 2- SEND request for the API to process. 3- WAIT jobs to be complete. 4- DOWNLOAD the re...
asked by 02.10.2016 / 23:30