36,032 views 126 on YTPak
201 8

Published on 23 Nov 2014 | over 2 years ago

Code available at github.com/Julian-Miller/OOP/ .

The word polymorph literally means "many forms". In software development, polymorphism allows us to use a common interface to perform different tasks. This means we can dynamically (i.e. at runtime through user input, files, etc.) change what our code does, without using large numbers of 'if' statements.

In this video I use initializer lists in the class constructors, which I haven't used in previous videos. I wanted to point out that this is just another (preferred) way to initialize a class' members, as opposed to assigning them in the constructor's body.

Twitter: twitter.com/swiftflux

Do you like video games? Check out this awesome streamer:
Twitch: www.twitch.tv/not_jenn
Twitter: twitter.com/not__jenn

Loading related videos...