Questions tagged as 'poo'

2
answers

How to call a method that belongs to another class? JAVA POO

Hi, I'm doing a program on the weight of people and I have to do several methods one of them is: averageWe're in the class Statistics of People but my problem is that I do not know how to call a variable or the method getPeso () which is of the...
asked by 07.12.2018 / 04:50
3
answers

POO Python: 1 positional argument but 2 were given

I do an exercise in Python the intention is to move around a 5x5 space but I have an error in the simulation of a switch that they think is: class Robot(): def __init__(self, x, y): self.x = x self.y = y switcher...
asked by 28.08.2018 / 19:39
1
answer

Inheritance in JavaScript

Good, we have seen a bit of object-oriented programming in javascript and have sent us to do an exercise to use inheritance. You have to calculate the volume of a cylinder in which we have to use the radius of a circle from a previous exercise....
asked by 17.01.2018 / 15:45
2
answers

Ajax does not bring me the data

I tell you my problem I'm trying to edit a record and the data I send to call through an id with Js and it works. But after sending that id with Ajax through "POST" to a method to do the query and return the values, it sends me an erro...
asked by 21.04.2018 / 18:15
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
1
answer

How to deserialize XML in C #

I am making an addendum for an XML, I go through the file with a split but I have heard that good practice would be to deserialize. How do I go through the xml and transform it into an object to manipulate it?     
asked by 18.10.2016 / 19:17
1
answer

PHP PDO Rollback does not work

Hi, I am trying to execute a PDO Rollback in a function where I involve several tables and there are several insert and updates. I am working with MVC and POO. Maybe I have something wrong with my structure, if so, could you tell me where...
asked by 31.08.2016 / 23:24
1
answer

Observer type bool C ++

I'm trying to solve this exercise: The Dice class manages the launch of 2 dice. A) The constructor receives two optional parameters with the initial value for the given 1 and the given 2 respectively. If the dice do not receive an initial...
asked by 25.08.2018 / 13:33
1
answer

Data is not saved correctly in class object in PHP POO

I hope you can help me or give me a constructive criticism, or guide me I have a problem when assigning attributes to a class object, in the following images. I show a little. This is my Car class, with the set and get methods Now th...
asked by 04.09.2018 / 22:09
1
answer

Exception AttributeError: "'NoneType' object has no attribute 'dump'"

I find myself practicing with Python , doing a little POO , a class here, another over there ... :) ... and, also, with handling of files and pickle . I expose the code block of a file called "manager.py": # encoding: utf-8 from io impo...
asked by 23.04.2018 / 00:46