Difference between revisions of "Beginner C++ Game Programming Tutorial 12"

From Chilipedia
Jump to: navigation, search
(See also)
Line 25: Line 25:
== See also ==
== See also ==
* [https://www.patreon.com/planetchili Planet Chili Patreon]
* [https://www.patreon.com/planetchili Planet Chili Patreon]
* [[Beginner C++ Game Programming Tutorial 13|Next in series (Tutorial 12)]]
* [[Beginner C++ Game Programming Tutorial 13|Next in series (Tutorial 13)]]
* [[Beginner C++ Game Programming Series]]
* [[Beginner C++ Game Programming Series]]

Revision as of 00:14, 12 November 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.

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)


This page has some interesting discussion on why we bother with all this encapsulation bullshit.

Video Timestamp Index

Coming soon!


  1. Encapsulate the fuck out of the Dude class.
  2. Increase the number of Poo objects from 3 to 9.

The solution is given in this video.


The starting code for Tutorial 12 is here.

See also