Constructors

Constructors are a special kind of method. They are called 'behind-the-scenes' when an object is created.

That means that we don't have to write the code that calls them as PHP does the work for us.

Cheers PHP πŸ‘Š

Branch: https://github.com/GaryClarke/learn-oophp/tree/5-constructors

Complete and Continue  
Discussion

8 comments