Hello everyone, I'm trying to make sure that when I press 1x in the ".PA" packages, it will make the changes:
add class .select
CSS: #bottaaoPA: Display: Block;
CSS: bottaaoPB: Display: None;
CSS: bottaaoPC: Display: None;
And whe...
I have a class Funcionario that has attributes: CPF , Nome and Salario .
I have to create an X amount of instances of this class in a List<> and after that, return to the user the values of this list. Wi...
I created a partial class for the model users where I implemented some custom functions, such as a function that takes the first and last name assigned and generates a handle , see example below:
namespace E_Learning.Mode...
I have an architectural doubt, I believe.
I need to create a method that receives a date range and an entity on which to perform a search in the period quoted. In fact, to ask this question it matters little what the parameters of this method...
Normally when I want to pull a variable that is outside the class, I use global $variavel , but I wanted this variable to be accessible in all functions of the class, so I do not need to "pull" all the functions, how?
I'm a beginner in Python and wanted to understand a difference.
The two classes below produce exactly the same result and the variables are publicly the same in both classes:
class c():
t = "abc"
print (t)
for a in range (3):...
I set a constant in a file and would like to call it inside a method in a class.
Example:
File: Configuracao.php
<?php
define('FOO','Hello World');
require_once('Classe.php');
?>
File: Classe.php
<?php
namespace...
I needed to implement some functionality in the users model but as you can see right at the beginning this class is automatically generated by Entity, so whenever I update or recreate the model the custom functionality will be lost.
Ex...
I'm studying about passing parameters in PHP. I want, for example, to use a certain method that needs to get two values, I have the following codes:
Example 1
In class :
class Exemplo {
protected $var1, $var2;
publ...
Good afternoon, I have an error on line 17 of main. I have one "Student" object and another "POO1" object. I wrote the following code:
Aluno aluno = new Aluno ();
Avaliacao poo1 = aluno.getAvaliacao();
To send the notes I wrote this:
//...