Questions tagged as 'poo'

3
answers

Call variable from one class to another java POO

Good I'm doing a POO project, and I want to get a data from a class Employee, to make a comparison in another class Salary, can this be done? Or should I make the comparison in the main method directly? 'Import javax.swing.JOptionPane; /** *...
asked by 26.04.2017 / 22:44
1
answer

the poo instructions do not work with apache2

I had installed xampp and my code of a menu worked correctly using Object Oriented Programming, I had to reinstall my system but now install apache2 php5 and mysql. The codes were not modified, and they do not work for me. <nav class=...
asked by 05.10.2016 / 05:07
2
answers

C ++ request by member 'init' in 'mainRender', which is of type 'Renderer ()' which is not class

Hello I'm having problems with the methods of a class in my program, I think it's due to the distribution in different header files, I wanted to know in which particular cases this error occurs? error: request by member 'init' in 'mainRender'...
asked by 12.09.2016 / 00:15
1
answer

access descendant properties of mySQLi in php

Dear   I have extended the class mysqli in php but when doing print_r the public properties that I have added to the class are not shown: here is an example: <?php // define una nueva clase class miClase extends mysqli{ public...
asked by 21.05.2016 / 11:02
2
answers

Problem accessing an object from one form to another in delphi

I have a problem with two classes in delphi, I have them in the following way unit uModuloDatos; interface uses FloguinUsuario; . . . . procedure TModuloDatos.DataModuleCreate(Sender: TObject); var ConEnc : String; pedro : TFormLoguinUsuario;...
asked by 31.01.2018 / 08:26
3
answers

Fill members of an object with two different functions

Imagine that I have an object a (of the Rational type) and a function to fill in that rational (write its numerator and denominator members). Well, I contemplate two options: MAIN PROGRAM #include <iostream> #include "Racional.h" us...
asked by 08.02.2018 / 13:39
3
answers

How to enter arrays by constructor? Arrays java poo

I have to do a program to enter arrays in the main and then show the number plus its position, I wanted to enter arrays by the constructor and it does not leave me. Is there another way to do it? public class IngresoDeEnteros { private int nu...
asked by 05.12.2018 / 01:42
2
answers

Why does not the toString method work for me? Poo Java

Good the problem is that I deposit 100, then remove 50, and when I want to check my balance (calling the method toString) it puts me 0.0, when I would have to say 60, since in the initial balance I put 10 and deposit 100, what could be the error...
asked by 30.10.2018 / 20:29
1
answer

Problem when entering and reading data in JavaScript class

In this fragment of object-oriented programming I must create a single class with a "building" indicator and the properties "name", "description", "address", "data inauguration", "architect" and "cost". Must have methods to consult and modify th...
asked by 03.04.2018 / 13:34
2
answers

how to make a step by reference of two-dimensional array to the constructor?

My program has a problem in being able to make a step by reference of two-dimensional arrays to the constructor of the class ||=== Build file: "no target" in "no project" (compiler: unknown) ===| C:\Users\pc\Downloads\Matrices-Costructores.cp...
asked by 20.05.2018 / 20:55