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...
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...
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...
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...
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...
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...
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....
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...
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 ::...
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...