Marker interface pattern: Difference between revisions

Content deleted Content added
No edit summary
Line 15:
Although often shoved to the back of the pile in terms of [[OOP]] capabilities, [[PHP]] 5 provides an excellent level of Object functionality for a [[dynamically typed language]]. Although in most cases not neccesarry, you could recreate the Java example above like so:
 
<codepre>
<?php
interface Cloneable {}
class MyClass implements Cloneable {}
?>
</codepre>
 
== See also ==