Questions tagged as 'atributos'

2
answers

Why do the private attributes of a class change despite assigning them to another variable?

You define a class with a 'private' attribute called __rango then you want to make a copy of this attribute in the variable rangoT to modify it without affecting the original attribute, but both change its value. Class definitio...
asked by 10.04.2018 / 21:06
1
answer

Store and compare attribute value of an object in javascript

I have an object with some attributes and would like to store the value of one (the attribute is "state" and has value "closed") in a variable to compare its value by an "if" statement. What I'm looking for is doing something depending on the va...
asked by 10.05.2018 / 12:17
0
answers

How are restrictions made in SQL?

I have this code to generate a table Create table "Socio" ( "Dni" Char(20) NOT NULL, "Correo" Char(40), "Nombre" Char(20), "Contrase_a" Char(20), "Puntos" Numeric Check (puntos >=0), primary key ("Dni") ) Without Oids;...
asked by 13.04.2018 / 19:53
1
answer

Use two points as an attribute value in XML

I'm working on XML with the Oxygen program. Specifically, it is about registering an edition on an original text. Each word (token) is edited according to some rules and this also includes edited punctuation marks. For example, a comma is edited...
asked by 04.10.2017 / 11:12
2
answers

Why do the private attributes of a class change despite assigning them to another variable?

You define a class with a 'private' attribute called __rango then you want to make a copy of this attribute in the variable rangoT to modify it without affecting the original attribute, but both change its value. Class definitio...
asked by 10.04.2018 / 21:06
0
answers

How to define an attribute of type DateTime in python

I would like to know how to set attributes in python within a class. And tried the following code: def __init__(self): self.fecha_Y_Hs = datetime.datetime.now() self.decripcion = '' I am new in this language and I would like to know...
asked by 09.08.2018 / 22:56
1
answer

classe properties from an external file

Is it possible to do this in some way in php? Main archive <?php class Class_APP{ require_once 'propiedades.php'; public function __construct() { } } ?> external file properties.php <?php p...
asked by 24.10.2017 / 17:35