Questions tagged as 'clase'

2
answers

Why should I instantiate certain classes?

* Because the class string should not instantiate it to use a function of its prototype? , example: * String.prototype.mayus = function(){ return this.toUpperCase(); }; var frase = "mayusculas".mayus(); console...
asked by 08.08.2017 / 23:28
1
answer

Doubt: It is advisable to use a class not as an Entity but as Functionality?

Very good. I have a method that checks if all TextField is complete and that it returns a boolean based on that. My idea is that I want to use this method in several classes to do it with different windows (frames), since each one has dif...
asked by 01.12.2018 / 17:34
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
1
answer

Java does not respect the Scanner

I am having problems with a java program using classes. The problem is that when I run the program name, age and career are requested when I enter the name all right, when I enter the age and give it to enter to run only run the println but do n...
asked by 04.07.2018 / 00:54
1
answer

Replace the use of "var" when creating a variable in C # 2.0

Good my query is this: var items = new Normaslist(); try { conn.Open(); //using (var dr = cmd.ExecuteReader()) using (SqlDataReader dr = cmd.ExecuteReader()) { in the code shown I define a variable...
asked by 02.03.2018 / 19:47
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
3
answers

CSS does not load correctly when I upload it to my hosting

I have a problem that is killing me. Working with Brackets I can see my page correctly done on my local server, but when I upload it to my hosting server it is not displayed correctly. The problem arises in the div with class ".text-fixed"...
asked by 02.02.2018 / 17:40
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
2
answers

How do I use an event inside a "class" javascript, from the mouseup of a container?

function MakeDrawable(containerID){ this.container = (document.getElementById(containerID) || document.body); this.onCreateElement = null;//Evento externo this.container.onmouseup = function(e){...
asked by 11.11.2017 / 22:08
2
answers

Print cycle while in a TextArea that is in another Java class

I have this program that pings a specified host. public class PingTool { private String ip = ""; private int port; private int times; private String hostaddr = ""; String resultado; public void setDireccion(String ip, int port, int times){...
asked by 14.08.2017 / 05:03