What keyword in Scala allows you to prohibit inheritance from a trait or class outside the file in which this entity is located, while keeping the possibility of inheritance inside the file?
Algebraic data types
Inherit, but locally
Report a typo
Select one option from the list
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.