Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Account
- {
- private $Name;
- private $Age;
- function __construct( $name, $age )
- {
- $this->Name = $name;
- $this->Age = $age;
- }
- public function GetName()
- {
- return $this->Name;
- }
- public function GetAge()
- {
- return $this->Age;
- }
- }
- $overv = new Account( "Overv", 16 );
- print( $overv->GetName() );
- ?>
Add Comment
Please, Sign In to add comment