Inheritance/Multiple: Difference between revisions
Content deleted Content added
m removed omit from phix |
Added Rust |
||
Line 1,324: | Line 1,324: | ||
# define methods here |
# define methods here |
||
end</lang> |
end</lang> |
||
=={{header|Rust}}== |
|||
<lang Rust>trait Camera {} |
|||
trait MobilePhone {} |
|||
trait CameraPhone: Camera + MobilePhone {}</lang> |
|||
=={{header|Scala}}== |
=={{header|Scala}}== |