class Person { public $name; public $age; function __construct($name, $age) { $this->name = $name; $this->age = $age; } function get_name() { return $this->name; } function get_age() { return $this->age; } } // Create a new Person object $person = new Person("John Doe", 30); // Call methods on the Person object echo "Name: " . $person->get_name() . "<br>"; echo "Age: " . $person->get_age();