alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (accesses.scala)

This example Scala source code file (accesses.scala) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

a, a, err1, ok1, ok1, ok2, ok2, unit, unit

The Scala accesses.scala source code

package 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

 

new blog posts

 

Copyright 1998-2021 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.