name = $newName; $this->street = $newStreet; } public function display(){ echo "
\n";
echo "Name: " . $this->name . "
\n";
echo "Street: " . $this->street . "
\n";
echo "
Create an object and display it.
display(); ?>Change the object contents and display them.
setName("Jane Doe"); echo "New name is: " . $anAddress->getName() . "
\n"; $anAddress->display(); ?>