Show Output
length . "
"; echo $obj->width . "
"; // Set object properties values $obj->length = 30; $obj->width = 20; // Read the object properties values again to show the change echo $obj->length . "
"; echo $obj->width . "
"; // Call the object methods echo $obj->getPerimeter() . "
"; echo $obj->getArea() . "
"; ?>