// Abstract class
abstract class Shape {
abstract public function calculateArea();
}
// Concrete class implementing the abstract class
class Circle extends Shape {
private $radius;
public function __construct($radius) {
$this->radius = $radius;
}
public function calculateArea() {
return pi() * pow($this->radius, 2);
}
}