Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Subclasses need the ability to override the behavior the base class. That's the purpose of the virtual keyword.
You might be interested to know that Alan Kay, one of the creators of OO, was a biologist by trade. The terms polymorphism and inheritance are both used in Biology.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Karol Pisula
2,578 Points1 Answer
-
Brooks G
5,284 PointsCould you also write "Health -= factor" in the Shielded Defender's version of DecreaseHealth?
Posted by Brooks GBrooks G
5,284 Points1 Answer
-
Brandon Mendez
4,177 Points0 Answers
-
Jeff Spurlock
8,859 Points3 Answers
-
Michael Mansperger
2,623 Points1 Answer
-
ngoc luc tuan
1,022 Pointsi do exact like the video, however i got this error
Posted by ngoc luc tuanngoc luc tuan
1,022 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up