October 2016
Beginner
520 pages
10h 19m
English
Q) We learned about polymorphism, but I didn't notice anything polymorphic in the game code so far.
A) We will see polymorphism in action in the following chapter, when we write a function that takes a PlayableCharacter as a parameter. We will see how we can pass either Bob or Thomas to this new function and it will work the same with either of them.
Read now
Unlock full access