Questions tagged as 'namespace'

1
answer

How many classes can I put in the same code?

How many "classes" can I add to my code? Let's say I have the following existing command block: namespace _06_ByteBank { public class Cliente { private string _cpf; public string Nome { get; set; } public string CPF...
asked by 07.12.2018 / 15:28
1
answer

I can not get functions from the System.Management class

I'm not able to call some functions of the System.Management class; for my program. I've tried to using System.Management; or System.Management.ManagementObject but it also does not work. Code: static string getid() {...
asked by 24.04.2017 / 14:54
1
answer

Why some methods have '::'

Why some methods such as Perl or Ruby: Net::FTP , have these two points; how is the construction of the methods of this class and why it is created this way (with this syntax) and not of the form currently used by current libraries: HTT...
asked by 12.03.2017 / 04:12
1
answer

Differences between ways to reference a namespace

I'd like to understand why in some code examples, people import classes as follows: use \Firebase\JWT\JWT; and not just: use Firebase\JWT\JWT; Is there any difference in starting with a \ "? In my tests for my classes the result wa...
asked by 13.04.2018 / 21:48
2
answers

problem with namespace when running project

I can not get this code to run, I'm starting with the namespace and would like a tip for me to continue my studies. First class <?php namespace view\classes; class View { public function visualizar() { echo 'visualizar';...
asked by 15.08.2014 / 02:14
1
answer

WebService return does not respect the namespace of my own WSDL

Hello! I'm starting now in the world of Webservices. I made a WS in the eclipse wizard using axis 1 (if I'm not mistaken), in the "Bottom up" style: In the eclipse, positioned in the class that will be WS: File-> New-> Other-> Web Service (Class...
asked by 21.12.2017 / 15:23
1
answer

Connection error using namespace

I have a file that is responsible for connecting to DB and is in PDO. <?php namespace clientes\model; class conexaoPDO { public static $instance; private function __construct() { } public static function getIntance() { if (!isset...
asked by 26.06.2017 / 22:15
3
answers

Use of using versus full name

I've been following many open source projects and noticed that there is a fairly large switch between using using ( Imports in VB.NET) and using direct reference to namespace . Example: void Main() { System.Int32 i...
asked by 17.07.2015 / 19:04
3
answers

Why is not it a good practice to use namespace "std" in C ++?

I was using using namespace (nomeDaBiblioteca); in my code and I ended up having some conflicts with another library. Why do these conflicts happen and what is the best solution?     
asked by 28.10.2014 / 19:02
0
answers

Fatal Error Class not found - PHP Namespace

Hello I'm using the following php codes <?php namespace lab312\database; class ScriptFactory { function __construct() { } //outras funcionalidades } and <?php namespace lab312\database\testes; use lab312\database\ScriptFact...
asked by 23.07.2016 / 22:46