Re: Package == NameSpace?
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Sun, 25 May 2008 16:13:18 -0400
Miles wrote:
Arne Vajhøj wrote:Miles wrote:Are they pretty much the same?
Yes.
Java package = UML package = C++ namespace = C# namespace
Thanks. I was thinking in terms of C#, should have pointed that out.
From 10000 feet it is the same.
There are a few details that differ.
In Java the directory structure should match the package structure. No
such restriction in C#.
In C# you can have multiple namespaces in one file. In Java one file
belongs to one package (see previous).
Java has default/package accessibility. C# internal accessibility goes
in assemblies.
If you use VS and Eclipse and let them structure the project, then
you will not feel the differences much.
Arne
.
- Follow-Ups:
- Re: Package == NameSpace?
- From: Mark Space
- Re: Package == NameSpace?
- References:
- Package == NameSpace?
- From: Miles
- Re: Package == NameSpace?
- From: Arne Vajhøj
- Re: Package == NameSpace?
- From: Miles
- Package == NameSpace?
- Prev by Date: Re: compering date with the data base
- Next by Date: Re: compering date with the data base
- Previous by thread: Re: Package == NameSpace?
- Next by thread: Re: Package == NameSpace?
- Index(es):
Relevant Pages
|