Questions tagged as 'clase'

1
answer

Add an image in a JPanel in the same class

hello the following is my code, but although it does not show me error and compiles, it simply does not work, I do not know if I made an error or if I put the image wrong from the beginning, because the image I have it from the download folder ....
asked by 09.08.2017 / 00:14
1
answer

Castings on derived class objects

I have a question about the solution to the following exercise; In the main class, when I call the force () or telekinesis () methods (which are in the derived classes), I have to do several castings on a vector that declares the type of the par...
asked by 23.08.2017 / 03:18
2
answers

assignment of values to compound classes C #

I have the following problem, which may seem a bit silly, but I do not give with the answer. I have the next class public class miClase { public int miId {get; set;} public string miString {get; set;} public tipo1 miTipo1 {get; set;} }...
asked by 10.03.2017 / 21:17
3
answers

How to add file to c ++ program, with classes?

How to connect a text file (not binary), that stores data entered by the user in c ++, in this simple example: #include <iostream> #include <string> #include <conio.h> #include <stdio.h> using namespace std; class pers...
asked by 24.12.2016 / 15:25
0
answers

not working in another class

my problem is, the data of my arraylist is erased when using it in another class, I have the crud add and consult works in a class, and both work I think and consult and everything is fine, but when I restore it works in a separate class , and I...
asked by 22.11.2018 / 04:58
0
answers

A method that returns an object of a class Daughter from an Array of the type of the Parent Class

Good you could help me to make a method that returns an object of so much Magazine / Novels of class Daughter being the arrangement of the inventory of type Books as a parent class, I need in the main program the object of the type of the class...
asked by 06.11.2018 / 17:16
1
answer

'Error in the XML document (2, 2).' Not expected info xmlns = ''

Performing the example of this thread I find an error when deserializar the object location and room: static void Main(string[] args) { Location locations = new Location(); Room rooms = new Room(); X...
asked by 09.11.2018 / 17:51
0
answers

Make a function return an implemented object c ++

I have a class created and that works correctly, in this case it is a Queue, with its attributes and functions. Now I want to create and invoke a function that returns an object of this type but throws me an exception. I have: Cola trocear(cha...
asked by 04.11.2018 / 13:59
2
answers

Why do the private attributes of a class change despite assigning them to another variable?

You define a class with a 'private' attribute called __rango then you want to make a copy of this attribute in the variable rangoT to modify it without affecting the original attribute, but both change its value. Class definitio...
asked by 10.04.2018 / 21:06
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