Last active
August 21, 2023 23:20
-
-
Save mcsee/ba7cb02ed4cf4c8ae6d0bf4aae3d7cb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
interface Sortable { | |
public function sort(); | |
} | |
class Array implements Sortable { | |
public function sort() { | |
// Implementation of the sort() method for Array | |
} | |
} | |
class List implements Sortable { | |
public function sort() { | |
// Implementation of the sort() method for List | |
} | |
} | |
class Stack implements Sortable { | |
public function sort() { | |
// Implementation of the sort() method for Stack | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment