Guest User

Untitled

a guest
Jul 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <?php
  2. class Account
  3. {
  4. private $Name;
  5. private $Age;
  6.  
  7. function __construct( $name, $age )
  8. {
  9. $this->Name = $name;
  10. $this->Age = $age;
  11. }
  12.  
  13. public function GetName()
  14. {
  15. return $this->Name;
  16. }
  17.  
  18. public function GetAge()
  19. {
  20. return $this->Age;
  21. }
  22. }
  23.  
  24. $overv = new Account( "Overv", 16 );
  25. print( $overv->GetName() );
  26. ?>
Add Comment
Please, Sign In to add comment