answersLogoWhite

0


Best Answer

Import only one of the packages containing the classes with the same name. Use the other class by typing out its full namespace.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you resolve name-space collision?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is namespace collision in java?

ggagagggagag gghakk


What is Namespace in NET framework?

They are(simply put) the things that you import.... EXAMPLE: VB Import (namespace) C# Using (namespace)


What are some disadvantages of using namespace in C?

Here's one: there's no namespace in C


What is the user folder for an account that contains a group of subfolders called?

profile namespace


Can you have nested namespace?

Of course! All namespaces are nested by default since all namespaces exist in the global namespace. A class is also a namespace; therefore classes can also be nested.


Is a public function accessed like a non-member function?

A public function is scoped to the class in which it is declared. If declared non-static, then it must be invoked against an instance of the class but if declared static then namespace resolution is required to access the function. A non-member function is not scoped to any class but may be scoped to a namespace. If no namespace is specified, then it is scoped to the (unnamed) global namespace. If scoped to any other namespace then namespace resolution is required to access the function.


What is global object in c plus plus?

A global object is any object instantiated in the global namespace. The global namespace is anonymous, so if we don't explicitly specify a namespace prior to instantiating an object, that object will be instantiated in the global namespace: int x; // global namespace n { int x; // non-global }; To refer to the non-global, we must use namespace resolution: x = 42; // assign to the global n::x = 42; // assign to the non-global


What is the namespaces in Net framework?

They are(simply put) the things that you import.... EXAMPLE: VB Import (namespace) C# Using (namespace)


Which is not a major namespace in .net?

system.io


Difference between domain DFS and stand alone DFS in windows 2k?

Stand-alone DFS Namespace In a stand-alone DFS namespace, the path to access the root or a link starts with the root server name. The stand-alone DFS root can comprise of a single root target. Therefore, these are not fault tolerant. When the root target is not available, you cannot access the complete DFS namespace. You can enable fault tolerance on a stand-alone DFS namespace by creating these namespaces on a cluster of servers. A stand-alone DFS namespace has its configuration information stored in the local registry of eth root server. Domain-based DFS Namespace In a domain-based DFS namespace, the path to access the root or a link starts with the domain name of the host. The domain-based DFS root can comprise of single or multiple root targets that enables fault tolerance and load sharing. A domain-based DFS namespace has its configuration information stored in the Active Directory. Exemple : • \\DomainName\RootName: This is the format of the namespace when you select the Domain-based DFS namespace type. • \\ServerName\RootName: This is the format of the namespace when you select the Stand-alone DFS namespace type.


What is naming space in c plus plus?

A namespace is a group of related identifiers.namespace ns {int i;double d;}Inside namespace ns, i and d can be used normally. Outside namespace ns, i is called ns::i and d is called ns::d. To import i into the current scope, say "using ns::i;". To import all identifiers in ns into the current scope, say "using namespace ns;". Namespaces can be nested:namespace ns1 {namespace ns2 {int i;}int i;}The i in namespace ns1 is fully qualified as ns1::i. The i in namespace ns2 is fully qualified as ns1::ns2::i. The two variables are distinct. Inside ns2, i refers to ns1::ns2::i; inside ns1, i refers to ns1::i.


What is the use of using namespace STD in c plus plus programming?

No, the use of 'namespace std' is not compulsory. You can specifiy it on any object reference. Specifying 'namespace' simply provides a default value. Contrast ... using namespace std; cout << "Hello world!" << endl; ... with ... std::cout << "Hello world!" << std::endl;