Most voted "fields" questions
15 questions
Sort by count of
-
28
votes6
answers4346
viewsWhat is the difference between attribute and field in the classes?
When I am studying object-oriented programming, at times I hear about fields and attributes of a class, but the two seem to be different definitions to refer to the same thing. What’s the…
-
6
votes3
answers425
viewsIs it mandatory to put the same attributes on different constructors?
I have these builders: //1st Constructor - Create bike with a new frame public Motociclo (String marca, String modelo, float peso, int robustez) { //Nivel 2 this.marca = validarMarca(marca);…
-
6
votes1
answer117
viewsCan I create function parameters like string?
I am trying to delve into functions and in the example of the site MDN Web Docs they have the following example: var math = { 'factit': function factorial(n) { console.log(n) if (n <= 1) { return…
-
2
votes1
answer321
views -
2
votes1
answer340
viewsHow to create Java constants?
A java constant cannot be changed, but can be assigned an initial value via another variable ? For example, if we have in our program a method that hypothetically calculates the import rate of a…
-
1
votes1
answer117
viewsIs it possible to force a class to implement a Java attribute?
It is possible to force a class to implement an attribute in Java? I know that through interfaces you can force the class to implement methods, but I would like to do this with attributes as well.…
-
0
votes2
answers823
viewsHow to read comments from Mysql table fields?
This command SHOW COLUMNS FROM [table name]; Shows the fields of a table and the most important details of them I need to read the field comments, example: COLUMN cod_id INT(10) UNSIGNED NOT NULL…
-
0
votes1
answer197
viewsAdd fields in Fullcalendar
Good evening! I’m looking to develop a task manager for an office staff. I saw some videos about Fullcalendar and saw that in the pattern it accepts the following fields: ID, Title, Start, End and…
-
0
votes1
answer42
viewshow to compose a fieldset with 2 color themes?
At the angle I have this code below <fieldset id="fieldset" class="blue-light> <legend>Informaçoes X</legend> Texto texto texto </fieldset> i have that Cod up for blue…
-
0
votes1
answer57
viewsCreating dynamic inputs with increasing value
I have a script that already adds and removes the desired fields. I click + it adds and click on the recycle bin icon it removes.. Until then this ok, I copy the div and it creates a new line with…
-
0
votes1
answer92
viewsHow to Recover C# Dynamic Fields for SQL
I’m making an ASP site that has dynamic fields in js: a = 0; function GetDynamicTextBox(value) { a++; return '<div class="container bg-light p-3 mb-2"><div class="form-group row…
-
0
votes1
answer70
viewsUpdate using different record from the same table
I need to make a update update the field record of a table, using another record of the same table and same field. My table is as follows: select produto,valor_bruto,acrescimo,valor_liquido from…
-
0
votes0
answers13
viewsSELECT of two fields in the same table, prioritizing one field, but showing both
Hello, I have a bill release table to pay. There are fields like: data_de_lancamento, data_de_pagamento, data_pagamento_feito. What happens is that, in the query, I need for example: EX: I launched…
-
-1
votes1
answer394
viewsAdd 2 attributes and return to a third attribute
I am trying to add two attributes and return the value to a third attribute, follow example, it is possible and if yes what I am doing wrong? package testesomaatributos; public class…
-
-1
votes1
answer123
viewsApplying CNPJ Mask to Dynamically Add/Remove Fields
var corCompleta = "#99ff8f" var corIncompleta = "#eff70b" function ResetCampos() { var textFields = document.getElementsByTagName("input"); for (var i = 0; i < textFields.length; i++) { if…