Content deleted Content added
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags |
|||
Line 116:
=== PHP ===
This example uses a trait to enhance other classes:
<
// The template
trait TSingleton
Line 144:
use TSingleton;
}
</syntaxhighlight>
This allows simulating aspects of multiple inheritance:
<
trait TBounding
{
Line 178:
}
}
</syntaxhighlight>
=== Rust ===
|