Questions tagged as 'poo'

2
answers

Difference between the constructors of C ++?

Hi, I just saw a video about c ++ but it's in English, there was a part where I started explaining about POO, and he talked about the builders, I understand what it is, but he did two of which I do not know his differences. This is the first...
asked by 14.01.2018 / 06:06
1
answer

Problem when printing data from a POO php constructor [closed]

I'm studying POO in php, and I've done this code, but when I run it, the page goes blank and does not show me the data I've entered before, any help? <?php class coche{ var $ruedas; var $color; var $motor; } function __constru...
asked by 26.03.2018 / 07:05
1
answer

Difference between Interface and Abstract class (particularly in PHP)

I have a doubt that eats my head and I searched in San Google but I find only technical answers and they do not help me much. I would like you to be able to tell me in a simple and clear way (if you will) the difference between an interface a...
asked by 23.06.2016 / 07:54
2
answers

List interface with different instantiations

What is the difference, advantages, disadvantages between?: List a=new ArrayList();\suponiendo que introducire numeros enteros ArrayList a=new ArrayList(); \suponiendo que introducire numeros enteros ArrayList<Integer...
asked by 28.08.2017 / 07:38
1
answer

Error passing object by session in php

I'm doing a login, and the type of user is a different object, that object in the code that it queries if it works well, use a var_dump to the session variable where I used it and it works well, epro when I sent it no longer works. Login.php...
asked by 19.12.2016 / 05:11
3
answers

Object reference not set as an instance of an object. Asp.net MVC

Add two more fields to the beneficiary class and I made the migrations now it is showing me this error. //Model [Table("Beneficiarios")] public class Beneficiario { [Key] public int beneficiarioId { get;...
asked by 26.07.2016 / 17:10
1
answer

Is there an equivalent to cin.clear () and cin.ignore () in Java?

I have a method that helps me to validate variables int , but when I pass them from C ++ to Java the ignore and clear methods do not work for me. Is there any equivalent to those functions in Java ? int ValidaInt(){...
asked by 14.05.2017 / 02:23
1
answer

problem with Jframe netbeans POO events

I am working with events in Java Swing and it happens that in a JFrame I have uploads of three images. What I need is to know how I do so that when I press an image when I run the program it moves vertically and I can stop it with another click...
asked by 10.04.2017 / 20:56
1
answer

Decorator with parameters in Python

I need to implement a decorator with classes or functions that receive parameters, like the following example @MyDec(flag='foo de fa fa') def bar(a,b,c): print('En bar(...) : ',a,b,c)     
asked by 11.08.2018 / 21:53
2
answers

How to throw exceptions using ternary operator in Python

I want to throw an exception on a single line to a method that a boolean has to receive if he does not receive it, by using a ternary operator. How can I do it? I tried to put a else pass but it does not validate the syntax def metodo...
asked by 11.08.2018 / 18:03