class Visitors
{
public function greetVisitor()
{
echo "Hello
";
}
function sayGoodbye()
{
echo "Goodbye
";
}
}
Visitors::greetVisitor();
$visitor = new Visitors();
$visitor->sayGoodbye();
?>