Questions tagged as 'clase'

2
answers

Question about if inside a class in javascript

I wanted to do that if you have a child it is true to show me something, to do it but not inside a class and if it is false tell me that you do not have children, I made this churro but it does not go, this._hijos is true you should enter the if...
asked by 14.01.2018 / 13:12
2
answers

How to use a class as a type of a function external to the class?

How to use a type of a class inside a function external to the class? For example let's use this example of mathematics. I want to create a class abtracts Bola with two attributes and a function contiene that tells me if a point...
asked by 19.02.2017 / 11:38
1
answer

Get the name of a generic class in a java interface

I have the following case: public interface CustomRepository<T> { ... } public class CustomRepositoryImpl<T> implements CustomRepository<T>{ //Como puedo obtener el nombre de la Clase T } //Por ejemplo si uso la clase Usuar...
asked by 29.03.2018 / 23:21
1
answer

C ++ Class Prototype

Hello, I have a problem: include <iostream> using namespace class varios; int main() { cuerpo.hola(); cin.get(); return 0; } class varios { public: void hola(); }cuerpo; void class::hola() { cout<<"Este es un...
asked by 03.01.2017 / 23:20
2
answers

How do I avoid too many open connections?

My Dilemma is that I have a method of type MySqlDataReader that executes a query that sent it by parameter and returns the data ... To read this data I must create a Variable of the same type from where the Method is called, until then Well, it...
asked by 26.05.2017 / 17:55
1
answer

Doubt with list of initializers in C ++

I am studying TADs in C++ , and in the section of the constructor I get to the list of inicializadores , it is horribly explained and I have not found a video or page that explains it clearly. What is the list of constructo...
asked by 21.06.2017 / 02:22
1
answer

Error compiling a class in C ++

I get two mistakes and I do not know why. Statement of the exercise:    Implement the TAD (abstract data type) ConjuntoCadenas .       This TAD will consist of a structure capable of storing a set of at most 100 different string...
asked by 18.03.2017 / 20:10
2
answers

How to execute several methods of a class in the same PHP line [duplicated]

Hi, I wanted to know what structure the class should have so that once instantiated, several methods can be executed in a single line, for example I saw in several CMS or projects this: $NombreClase = new NombreClase(); $NombreClase->crea...
asked by 02.08.2017 / 20:40
3
answers

error: type 'FirstClass' does not provide a call operator

I'm trying to pass an object as parameter but I get an error that I did not provide a call to the object. I want to use the second definition of the constructor, so I pass it as a parameter to be able to enter the variables by default. Thi...
asked by 13.03.2017 / 21:48
2
answers

Error trying to create an array for types of a own Class

Hello, Good morning, everyone. I want to assign a new data type of an array, for example: I want my Array to be of the Person type, but it throws me an error, I've tried it in different ways. I do not know if this can be done? One of th...
asked by 20.04.2016 / 18:07