Questions tagged as 'poo'

1
answer

Compare the data of a matrix with a character

I'm starting to program in java, novice in this language, I'm doing a cinema seating assignment program, which I'm doing with a matrix of dimension 6, but when comparing the matrices with a character it performs well but I enter || (or) to compa...
asked by 09.02.2018 / 16:27
1
answer

Help with a list type object or modify code to make it work

I am working on a project in which I have to show boxes that enter an inventory, what happens is that of these boxes I have to show some of their data that are what type of pieces, according to their date of entry to the inventory show a number...
asked by 06.02.2018 / 23:51
2
answers

Put conditions on the getter and setter in a class

I am learning to create classes and I do not understand how to do so so that when I print the objects of the Client class, they only appear: of age and under 120 Emails containing the char "@" As it is now I see the data as you enter th...
asked by 09.03.2018 / 22:21
1
answer

POO in Java - Create instance in child class from parent class

Suppose the class ParentForm that will be used as a means to formulate the basis of the rest of the classes of an application, and suppose a class called ChildClass that will inherit from the parent class. In ClasePadre we have a static metho...
asked by 02.01.2018 / 09:37
1
answer

Constructor with POO constants. Java

I have a question about a little code I've seen. In an exercise, creating an Appliances class, you are asked to create a series of attributes (price, color, consumption, weight) and that by default, the color will be white, the energy consumptio...
asked by 13.01.2018 / 20:05
1
answer

Is it correct to implement two or more interfaces in the same class in POO?

Currently I want to start a project that will scale in the future to an extent that I do not know, so I would like to know if this is the correct way to apply interfaces in the classes Form (By method): Generate an interface for each stand...
asked by 21.01.2018 / 22:35
1
answer

Help with Java inheritance, inherit variables

Today I come because I have a problem and I have been breaking my head for almost the entire morning and I have not achieved anything. What happens is that in the following code I want to inherit the variables X, Y (with their numbers) but it do...
asked by 08.12.2017 / 16:56
1
answer

Pass a serialized object through a form

I'm trying to pass a serializado object to a form, to pick it up and not have to re-create it on the next page, but I do not print the string correctly in the input that I'm printing on. My code is as follows: class Objeto{...
asked by 04.12.2017 / 17:59
1
answer

Where should the data be validated, in the model or in the controller?

Initially we know that the validations from javascript must be obligatory, my doubt is in the driver or model. Normally I perform validations of laravel validation in the controller, taking into account that these validations perform the assi...
asked by 21.02.2018 / 22:24
2
answers

How to display several options within a menu in cosola in java?

My question is how to make a kind of menu within another menu. For example, I display in my code 4 options to choose from, in one of them if it is chosen it would be necessary to also display several options to choose from. It would be like a ne...
asked by 26.10.2017 / 03:29