I can agree with the previous comment, this lesson went crazy fast and covered alot. I just need some help clarifying a couple things:
a) The reason we use virtual and override is because the function or code can be shared between two or more classes, but each class uses that function or code in a different way? For instance with our worldPos() both classes need a reference to the Character’s screen position in the window, which is why the getter is created for a Vector2 getScreenPos( ) and marked as virtual (and abstract)?
b) Can someone explain again what the point of an ‘initializer list’ is, and why we use one in the Character.cpp class?
c) And final question but sort of unrelated, I notice sometimes that the instructor refers to the header file as the class file, which it is, then other times he will refer to the .cpp file as the class file. Is the term ‘class file’ used interchangeably between the header file and the .cpp file? I’m trying to get terminology down as best I can so I’m not sure what to call the .cpp file now.