Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Car
- {
- // property
- public $Engine;
- }
- class Engine
- {
- // property
- public $Horsepower;
- }
- $myCar = new Car();
- $myCar->Engine = new Engine();
- $myCar->Engine->Horsepower = 160;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement