name = $productname; $this->price = $price; } function __destruct() { echo "The Product Name is {$this->name}.and the Price is {$this->price}"; } } $p1 = new product("Computer", "10000"); ?>