class User {
public function __construct(){
echo 'Constructor called';
}
public function register(){
echo 'User Registered';
}
public function login($username, $password){
echo $username. ' is now logged in';
}
public function __destruct(){
echo 'Destructor called';}
}
$user = new User;
$user->register();
//$user->login(‘brad’, ‘1234’);
?>