Difference between revisions of "Beginner C++ Game Programming Tutorial 12"
From Chilipedia
(Created page with "Here we learn about the concept of encapsulation (ask your mom where she keeps the Vicodin!), which is the main principle behind object oriented programming (so listen the fuc...") |
(→Encapsulation) |
||
Line 8: | Line 8: | ||
== Encapsulation == | == Encapsulation == | ||
− | This page has some interesting discussion on why we | + | [http://stackoverflow.com/questions/18300953/why-encapsulation-is-an-important-feature-of-oop-languages/18301027#18301027 This page] has some interesting discussion on why we both with all this encapsulation bullshit. |
== Video Timestamp Index == | == Video Timestamp Index == |
Revision as of 00:38, 30 October 2016
Here we learn about the concept of encapsulation (ask your mom where she keeps the Vicodin!), which is the main principle behind object oriented programming (so listen the fuck up eh?). We also learn how to construct shit, and how to make our shit private.
Contents
Concepts Taught
- Encapsulation and data hiding
- How to create a constructor
- How do initialize embedded objects (class initializer list)
- How to control member access (
private
keyword)
Encapsulation
This page has some interesting discussion on why we both with all this encapsulation bullshit.
Video Timestamp Index
Coming soon!
Homework
- Encapsulate the fuck out of the
Dude</Tcode> class.
- Increase the number of <code>Poo objects from 3 to 9.
The solution is given in a future video.
Downloads
I'll put the starting code here when I get access to it (away from home at the moment). If you have the solution from the Tutorial 11 homework you can use it instead.