Encapsulation in Scala: Implementing Data Protection and Control | CodeSignal Learn