Questions tagged as 'poo'

1
answer

Problem when using a singleton with an abstract factory

I only put the title of the pattern that I am using, but that is not a problem (maybe it seems to me to be a header problem) I also try to detail everything in my code with its respective compilation error. If someone has any idea to solve it, I...
asked by 01.11.2018 / 01:00
2
answers

How do I make the lock can not be opened anymore? Java POO

   Implement the Lock class. Then verify:       a. When you enter a correct password, open       b. When you enter an incorrect password, it will not open       c. If you enter the key incorrectly the maximum amount of   attempts, you can not...
asked by 30.10.2018 / 23:02
1
answer

Assign values to a 2d vector in c ++ [closed]

I'm trying to assign values to a 2d vector in c ++ This is how it is defined, where rows and columns are integers defined. vector < vector <int>> vec(filas , vector <int> (columnas)); what I want to assign to each space of...
asked by 07.07.2018 / 10:02
1
answer

Java does not respect the Scanner

I am having problems with a java program using classes. The problem is that when I run the program name, age and career are requested when I enter the name all right, when I enter the age and give it to enter to run only run the println but do n...
asked by 04.07.2018 / 00:54
1
answer

Warning: count (): Parameter must be an array

I have the following error: Warning: count (): Parameter must be an array or an object that implements Countable in ... and I really do not know why you are giving it to me, the code is the following: ' protected static $conexion; private s...
asked by 23.06.2018 / 23:13
1
answer

'Unreachable statement' error in java

I get an error without an apparent sense on line 78: (    78 | System.out.println ("Exit"); import java.util.Scanner; import java.util.ArrayList; public class nochevieja{ public static Boolean verificar(String horario){ //00:00 fi...
asked by 23.06.2018 / 05:28
1
answer

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2

I have a problem with this program, when I enter the second FOR this iterates 3 times and the program fails to give me this message: Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2     at java.util.ArrayList....
asked by 26.05.2018 / 22:09
1
answer

I can not find a POO class in php

I am making a connection to a database through POO and it is throwing me an error that the "Connection" class does not find me, but I have it added as inheritance in the class "ReturnsProducts". I have 3 php files. 1) The one that makes th...
asked by 09.04.2018 / 03:00
1
answer

Rename an attribute of another class in java

package Problema; public class ModeloEstudiante { private int id; private String nombre; private int evaluacion; private double notaFisica; private double notaMatematicas; private double notaQuimica; public ModeloEstudiante(int id, String nomb...
asked by 26.02.2018 / 07:21
1
answer

Access properties or attributes of an object of a class created on the fly

Suppose I have this code; new List<Int32>().Add(Int32.Parse(Console.ReadLine())); Could I have access in any way to the number I entered in the list? Not having an object as such, I do not know if something like that would...
asked by 24.02.2018 / 12:24