Skip to content

Instantly share code, notes, and snippets.

@vahid-almasi
Created December 21, 2018 03:12
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 vahid-almasi/fbf42881c5ee99abb8e993693bd7237f to your computer and use it in GitHub Desktop.
Save vahid-almasi/fbf42881c5ee99abb8e993693bd7237f to your computer and use it in GitHub Desktop.
<?
interface ShapeInterface {
public function area();
}
interface SolidShapeInterface {
public function volume();
}
class Cuboid implements ShapeInterface, SolidShapeInterface {
public function area() {
// calculate the surface area of the cuboid
}
public function volume() {
// calculate the volume of the cuboid
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment