mvsp

aula 10

Jul 21st, 2021
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. class Login {
  4.  
  5.     public static $user;
  6.  
  7.     public static function verificaLogin(){
  8.         echo "O usuário ". self::$user." está logado!";
  9.     }
  10.  
  11.     public function sairSistema() {
  12.         echo "O usuário deslogou";
  13.     }
  14. }
  15.  
  16. Login::$user = "admin";
  17. Login::verificaLogin();
RAW Paste Data