Answer Posted / Ravi Shankar Tiwary
Scala provides four access modifiers: 'private' (only accessible within the defining class), 'protected' (accessible within the defining class and subclasses), 'public' (default, accessible anywhere), and 'package' (accessible within the same package).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers