Answer Posted / Ashutosh Kumar Dubey
'Scala trait' is a fundamental concept similar to Java interfaces. However, traits in Scala can contain method implementations, not just method signatures like Java interfaces. Traits in Scala can be mixed into classes and other traits, which allows for more flexibility and code reusability compared to Java interfaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers