Questions tagged as 'poo'

0
answers

'NoneType' object has no attribute '_nserie' - Python Collections

I have the following classes: class Contenedor: def __init__(self, nserie, categoria, peso): self._nserie = nserie self._categoria = categoria self._peso = peso @property def categoria(self):...
asked by 07.11.2018 / 23:17
0
answers

Is this an interface in java?

Good I have a doubt about how I see that sometimes they declare variables in a way that I never saw, that is, I am used to declare variables of type: int , String , double , long , char , float , etc. But I d...
asked by 04.11.2018 / 00:07
1
answer

Pass a class attribute by reference to a local variable

How about people! I have a PrintServer with the software PaperCut PrintLogger which generates some CSV (and HTML) files with the printing log. I'm doing a script that reads the CSV in the data entered into a database, for further analysis....
asked by 27.10.2018 / 22:47
1
answer

How can I inherit a variable that gets data with a SQLServer query?

I would like to know how to inherit a variable that contains the ID of a user obtained with the login to make an insertion to the BD with the id of the user that is logged in. I have tried it in many ways but I have not solved my inheritance...
asked by 19.10.2018 / 18:03
0
answers

Method Returns Object, How to Receive it

I have a method that returns an object to me public CPunto PuntoMedio(CPunto a, CPunto b) { int xm = (a.x + b.x) / 2; int ym = (a.y + b.y) / 2; return new CPunto(xm, ym); } My question is how to receive th...
asked by 03.10.2018 / 19:35
0
answers

Query for a table value in ajax Class format poo with extends

I have this problem and I want to consult directly, I get an error, if someone knew how to do it better, I would like to be instructed. $user = $db->facultad->getAll("SELECT cuenta, contraseña FROM cuentas WHERE cuenta='MAT2018A001'");...
asked by 24.09.2018 / 01:20
1
answer

Laravel - Error: SSL certificate problem: unable to get local issuer certificate

I'm starting to learn laravel and when I try to install homestead via git, I get this error: I already have several days without being able to solve it, I already tried to enter the link provided by the console and it has not helped me...
asked by 19.09.2018 / 04:58
1
answer

How to use a "compareTo" method to find the oldest movie?

I was doing an exercise on the sales of a video club, the video club has 3 products: movies, series and videogames. Each product has its class and in the main method I declare 4 objects of movie type, 4 of series and so on. Each class has overwr...
asked by 09.10.2018 / 14:42
1
answer

I do not understand Relationships in poo

I am trying to carry out a poo project, but as I go from one to the other, I find it very difficult, I would like someone to help me with an explanation, I leave an image of the project thanks.     
asked by 15.09.2018 / 05:25
1
answer

How could I do so when asking for the address data, I asked for the 3 attributes of that class and I did not put it as a String

package Biblioteca; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; public class Principal { public static void main(String[] args) throws Exception{ BufferedReader bf = new BufferedReader(new...
asked by 09.09.2018 / 20:52