KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible in Scala to write something like: trait Road { ... } class BridgeCauseway extends Road { // implements method in Road } class Bridge extends Road { val roadway = new BridgeCauseway() // delegate all Bridge methods to the `roadway` member } or do I need to implement each of Road 's methods, one by one, and call the corresponding method on roadway ?
Tags (comma-separated)
Save Edits
Cancel