Questions tagged as 'construtor'

1
answer

Class attribute in constructor

I can access an attribute of the class within the scope of the constructor, however outside gives ' undefined ' constructor(errorAlert){ this._errorAlert = errorAlert; } If, for example, in the code above, I give% of the% in the parameter...
asked by 30.10.2017 / 17:59
1
answer

Conflict IoC Laravel 5.3

I have the following codes: Chat Staff Service namespace Chat\Api\V1\Services\Chat; class ChatStaffService extends Service { private $chatService; public function __construct(ChatService $chatService) { $this->...
asked by 13.01.2017 / 14:58
0
answers

Problem with the parameters passed to PHPlot by the Codeigniter Controller

I have a question that at the same time is a problem, because I do not know what I might be doing wrong. This is the following, I am using Codeigniter and to generate a graph I will use the library PHPlot , the basic I was able to generate t...
asked by 24.06.2016 / 21:53
1
answer

Parameterized constructor error c ++

What happens when a class with parameterized constructor is created, without default constructor, and the object of this type is called without argument in constructor in c ++? Does compilation error occur? exception?     
asked by 17.06.2015 / 14:38
1
answer

Why do the constructors have to have the same class name?

Is it really necessary for the constructor to have the same name as the class?     
asked by 30.10.2016 / 02:53
1
answer

Android: An error occurred while executing application

I noticed that by using the Alt + Insert shortcut and selecting it to give me the constructors, it tries to create a constructor with each property private (cManager and mTextView) . I remember that I created projects without this and...
asked by 20.02.2015 / 19:57
1
answer

When to use the constructor when using load

Good evening, how are you? I have a question, when to use the constructor and when to use the load of a form to call some method or etc. Example: public partial class Manutenção_cliente : DevExpress.XtraEditors.XtraForm { consulta_bd co...
asked by 20.07.2016 / 02:17
1
answer

Initialize members of a structure, accessed via pointer, in the constructor of a C ++ class

Imagine the DateTime class as follows: datetime.hpp: #ifndef DATETIME_HPP #define DATETIME_HPP #include <ctime> class DateTime { public: DateTime(); DateTime(int, int, int, int, int); private:...
asked by 27.09.2018 / 16:57
1
answer

List not being passed as method parameter

I need to implement is the RoutesBetween method to trace the route between one point and another (in this case, point A and E ). Test Method: public void TestRoutesBetweenTwoPoints() { var links = new ILink<string>[]...
asked by 21.12.2018 / 01:23
1
answer

Spring MVC - Multiple Builders

I have a problem where a Framework I'm using needs a default constructor, this is calling my Service class: @Service public class FuncionarioService { private FuncionarioDAO dao; public FuncionarioService(){ } @Autow...
asked by 28.09.2018 / 20:29