Questions tagged as 'classes'

1
answer

Problem with namespace and include

Good morning. I have a webservice made in slimPHP. I have a class that is called control , and it belongs to the controllers namespace, it works normally without problems, but the need arose to import a class for PDF manipulation, s...
asked by 06.06.2017 / 15:15
1
answer

Non-Angular Class 2

This is my angle class 2 export class LinhaModel { _id: string; Cidade: { id: string; CidadeNome: string; } Operador: { id: string, OperadorNome: string, } DiaOperacional: { id...
asked by 04.03.2017 / 15:36
1
answer

Dictionary in python

Good morning! I'm having trouble breaking information and dictionary in python. My dictionary is a dictionary generated by Biopython like the one below: {'LastUpdate': '2016/11/11 04:34', 'Count': '26645932', 'DbName': 'pubmed', 'LinkList': [{...
asked by 12.11.2016 / 14:35
1
answer

How to resolve the error: illegal static declaration

I have 2 classes that work quite independently of each other. I put the 2 in one and got 3 compilation errors, the error message says: ilegal static declaration. How to resolve the error on lines 42, 58 6 69. The following code: impor...
asked by 29.09.2016 / 14:43
1
answer

Class row with image

I'm trying to put in a row three columns, where the first one will have an image and the others should have the text aligned below. <div class="row" style="background-color: #ffffff"> <div class="col-md-2"><img src="../im...
asked by 18.10.2016 / 13:37
2
answers

Inheritance in the Entity Framework

I'm now reading about cross-domain inheritance in EF. I came across this example: public abstract class BillingDetail { public int BillingDetailId { get; set; } public string Owner { get; set; } public string Number { get; set; } }...
asked by 28.05.2016 / 17:54
1
answer

Association of several classes in Java

The project consists of a management system for a carrier, where an administrator manages trips, and these trips have drivers and trucks. I used association to relate the classes, but I'm having a hard time finalizing a method of checking the...
asked by 26.05.2016 / 01:50
1
answer

How to list static properties (shared property) equal to System.Drawing.Color

I have a structure called Servicos and in it I have some static properties. Public Structure Servico Public Shared ReadOnly Property Instalacao As Servico Get Return New Servico(ServicesType.Instalac...
asked by 12.04.2016 / 21:41
1
answer

Session variables $ _SESSION vs class variables in PHP

I wanted to know the pros and cons of using session variables in class constructor or even within the methods of a class. Let's say I have the following class: class minhaClasse { private $arrEnvSettings; public function __construc...
asked by 05.05.2016 / 19:12
1
answer

Get the index of the array in the foreach

I have the following CarrinhoDao.php class that creates an array of Carrinho.php objects that creates an object of class Produto.php I'm doing foreach in the resulting array: <?php require_once "controlls/uti...
asked by 17.12.2015 / 18:50