PHP - Interfaces and Traits
Identify the error in this PHP code:
interface Shape {
public function area();
}
class Circle implements Shape {
public function area() {
return 3.14 * 5 * 5;
}
public function perimeter() {
return 2 * 3.14 * 5;
}
}
$circle = new Circle();
echo $circle->area();