- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
difference between private[org.pack] and protected[org.pack]
Hi
is there any difference between:
private[org.pack] class MyClass
and
protected[org.pack] class MyClass
or between:
private[org.pack] val a = 1
and
protected[org.pack] val a = 1
meiko










Re: difference between private[org.pack] and protected[org.pack
On Sun, Jan 04, 2009 at 02:50:16PM +0100, meiko rachimow wrote:
> Hi
>
> is there any difference between:
>
> private[org.pack] class MyClass
> protected[org.pack] class MyClass
> private[org.pack] val a = 1
> protected[org.pack] val a = 1
Well, let's see. You can't use that synatx btw, scala chokes on dots in the access specifier. Fortunately you don't need
the dots: