Structural types and access modifiers for Java vs Scala classes