GAME PROGRAMMING I: WEEK THREE

This week we started using classes and inheritance. Again subjects that I know from earlier courses, but again nice with a refresher. We did touch on structs last week which are similar but are less usefull than classes.

Classes are a collection of data, that could either be methods(function that belongs to a class) or variables. If a class inherits from a base class, it receives the methods and variables from the base class.

When using classes we create objects, a defining feature of object-oriented programming, by instancing the class using the constructor that we write.

About Anton Classon

2014  Programming