C++ Classes

This is our second lesson on C++. In this lesson we finally get into the object-oriented features of C++. But we also cover advanced topics like templates and closures.

One of the big take-aways of this lecture is that C++ is not designed to use subclasses in the same way that Java does. C++ does not have interfaces at all. So sometimes subclass polymorphism is replaced by templates or by callback functions (e.g. lambdas). We will see examples of each of these in the CUGL engine later in the semester.

40:19 minutes slides demos