Scala : Access specifier manipulation