|
Scala example source code file (accesses.scala)
The Scala accesses.scala source codepackage test.p1.p2 abstract class A { private[p2] def f2(): Unit protected def f3(): Unit private[p1] def f4(): Unit protected[p1] def f5(): Unit } abstract class OK1 extends A { private[p1] def f2(): Unit protected[p2] def f3(): Unit private[test] def f4(): Unit protected[test] def f5(): Unit } abstract class OK2 extends A { protected[p1] def f2(): Unit def f3(): Unit protected[p1] def f4(): Unit def f5(): Unit } abstract class Err1 extends A { private def f2(): Unit = () private[p2] def f3(): Unit = () private[p2] def f4(): Unit protected[p2] def f5(): Unit } Other Scala examples (source code examples)Here is a short list of links related to this Scala accesses.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.