name = $productname; $this->color = $productcolor; } public function answer() { echo "The is {$this->name} and the color is {$this->color}."; } } class product1 extends product { public $price; public function __construct($productname, $productcolor, $price) { $this->name = $productname; $this->color = $productcolor; $this->price = $price; } public function question() { echo "This is {$this->name}, and the color is {$this->color}, and the price is {$this->price}."; } } $product1 = new product1("Laptop", "Blue", 50000); $product1->question(); ?>