C# : Class

Probably I have to talk about it before, but , as we can read here

https://brilliant.org/wiki/classes-oop/

“In object-oriented programming, a class is a blueprint for creating objects (a particular data structure), providing initial values for state (member variables or attributes), and implementations of behavior (member functions or methods).”

In our case, Player is a CLASS

Player Class

In our project, we can only move the Player for now, but when we add other things, like Bullet, Weapon, Enemies, etc, all these things are CLASSES.

This is important because more we advance more “tools” we have for create better code : Abstraction, Inheritance, Design Pattern, etc.
We have to understand and learn this things very well if we want create more complex projects after this!

In the next articles I try to explain how INSTANTIATE a Class and how use a CONSTRUCTOR!

See you soon!

--

--

Matteo Lo Piccolo

Always in love with programming, even if late (I'm already 39 years old) I decided to follow my dream! We will see how far my passion will take me!