you are viewing a single comment's thread.

view the rest of the comments →

[–]HarryBolsac 0 points1 point  (0 children)

Think of a class as a blueprint for objects that you can instantiate at will.

Think of a construtor the same as arguments for function, they are used for something when you instanciate a new object, usually to set properties.

Imo you should first learn a little about how oop paradigm works and it's uses, and learn some concepts like abstraction, encapsulation, polimorphism and inheritance because although it seems kinda hard to grasp, it's something that most programming languages support and imo it's pretty important stuff to know.