Return Type Declarations

Type-hinted returns enable your client code to know what types to expect from invoked methods. Again, we're making our code predictable and reliable...and everyone likes developers that write predictable, reliable code🏅

So here we are at the end of chapter one already...doesn't time fly! I hope you're enjoying the course so far. In the next chapter we're going to start looking at some object oriented priciples like inheritance and encapsulation...as well as a load of other cool stuff.

Lets do this! 💪

Branch: https://github.com/GaryClarke/learn-oophp/tree/9-return-type-declarations

Complete and Continue  
Discussion

8 comments