Re: Some understanding questions...
- From: "George Birbilis [MVP J#] [9880]" <birbilis@xxxxxxxx>
- Date: Mon, 20 Jun 2005 22:18:27 +0300
I've asked the J# team on this and will let you know about it
if anyone has time to checkout "Thinking in Java" book from
www.eckelobjects.com or the Java specification from java.sun.com on this,
please post your findings as a reply
> > If the other class file is in the same namespace, then you can access
only
> > "public" or "protected" methods and variables.
>
> not sure if in J# you can access "protected" fields of a class from
another
> class that has same namespace or not. In Java you should be able to do so
> only from class descendents, so this is problematic security-wise if this
is
> true (esp. when porting existing Java code to J#). Unless you can somehow
> seal a namespace (as you can do with packages in Java), maybe by using a
> signed assembly so that no other third-party code uses it apart from the
> code you want. Since there's the notion of "package private" too as I
> describe above, not sure why there should be separate namespace behaviour.
> To be sure try it and see what it does
.
- References:
- Some understanding questions...
- From: Christian-Josef Schrattenthaler
- Re: Some understanding questions...
- From: Christian-Josef Schrattenthaler
- Re: Some understanding questions...
- From: Sushovan
- Re: Some understanding questions...
- From: George Birbilis [MVP J#] [9880]
- Some understanding questions...
- Prev by Date: Re: Some understanding questions...
- Next by Date: dataGrid.set_CaptionVisible not working
- Previous by thread: Re: Some understanding questions...
- Next by thread: Re: Some understanding questions...
- Index(es):
Relevant Pages
|