Programming Week 4

Featured image

This week we started building on our second game – Arkanoid. This project is a bit more complex though since we’re actually building this game from scratch. Our teacher is livecoding while going through each line of code, it’s interesting but very hard!

We’ve learned more about inheritance, which is that you can create an original class, and then you can create another class which can inherit the original class’ values.

We have also started discussing something new – Polymorphism, which is what the name virtual in the image stands for. Polymorphism is one of the most important concept in object oriented programming and it is a mechanism that allows you to implement a function in different ways. For instance, the method ”Draw” in the image can behave differently depending on which state it’s in.

Lämna en kommentar