Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active August 21, 2023 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/ba7cb02ed4cf4c8ae6d0bf4aae3d7cb2 to your computer and use it in GitHub Desktop.
Save mcsee/ba7cb02ed4cf4c8ae6d0bf4aae3d7cb2 to your computer and use it in GitHub Desktop.
<?
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