Questions tagged as 'poo'

1
answer

Shopping cart

Hello, I ask another question because I have other doubts, I do not know if it's okay. Well, I propose what I have to do first. An object-oriented shopping cart (POO) that has basic operations such as adding product to cart to the aldo of eac...
asked by 23.11.2016 / 15:31
1
answer

In c # all data types are objects?

This is a topic that does not end up being clear, looking at official sites, forums and other pages. So-called "primitive data" in c # if so, are they all objects? An example is the int internally is a struct but according to the documentatio...
asked by 02.08.2016 / 07:38
2
answers

Classes, attributes, objects and dictionaries in python

I have a question with the following code: class Prueba(): atributo = {} p = Prueba() p.atributo['a'] = 1 z = Prueba() z.atributo {'a':1} How is it possible that by creating a new object, it has the dictionary that was assigned to the...
asked by 16.11.2016 / 23:10
1
answer

How do I average the method: calculate AverageWeightDownload? POO Java

I have to do this program, my question is how to do point 4), which is to calculate the average of the Locomotive class. At the time it occurred to me to do a summation for Carload weight that belongs to the vagon class and another sum for amoun...
asked by 26.11.2018 / 00:49
1
answer

Java Functional Methods

I am learning to use the functional programming of java 8 and I do not know why but I can not make the code work for me. The problem I have is that everything is fine until I want to assign 2 variables of the class, I can one, but when trying to...
asked by 28.11.2018 / 23:46
1
answer

How to enter arrays by keyboard and how to initialize them in the main? Java Poo

Good I'm doing a program where I must (enter the name and the note of some students) make 2 arrays one of the String type and another of the float type. I have a problem in the main when I want to enter the student data by console. First I put t...
asked by 08.12.2018 / 03:52
2
answers

How can I fill an ArrayList with an object of an already created class

I tell you that I have two classes, a class of Task type and another of type Person, within the attributes of type person, has an ArrayList of Task type, when I create an object of Task type, and when filling this object with its attributes....
asked by 27.11.2018 / 21:29
2
answers

Parameters in anonymous classes

I have the next anonymous class ActionListener seleccionYo= new ActionListener(){ @Override public void actionPerformed(ActionEvent ae, Hero hero, Yo yo){ hero = new Yo("Oscar", 2, 0, 1000, 50, 25, 5, false...
asked by 16.11.2018 / 02:11
3
answers

Error compiling, help with POO in C ++

I am learning POO programming and I have a small mistake when trying to do my first "object". You give me this error.    C: \ Users \ Manflack \ AppData \ Local \ Temp \ ccf4P5ij.o poo3.cpp :(. text + 0x181): undefined reference to 'Person ::...
asked by 12.12.2016 / 02:01
2
answers

Doubt with literal b of this exercise

Very good to the whole community I am new and eager to learn in java. Well my doubt lies in the literal b, my code I have it this way. In a class called Person you have two methods and one variable, the variable is called typeBaile and is pri...
asked by 26.10.2018 / 19:56