[ENGLISH VERSION] Classes 101: Methods

Hey, how are you? Like said on the first post of this serie, today we are going to know how we add new methods to our class, and so much more. Inside the method initialize we can have anything and today we are going to use it to "initialize" our variables. We use the @ … Continue lendo [ENGLISH VERSION] Classes 101: Methods

Anúncios

[ENGLISH VERSION] Practical Guide: Spaceship Operator (<=>)

Hey, how are you?! Represented by <=>, the remarkeble Spaceship Operator works the same way, that his endings: like a comparison opertor, three-way comparison, being a key element in sorting methods. The little spaceship (got it?) counts with three types of comparision, always done from left to right, and can return three values as well: … Continue lendo [ENGLISH VERSION] Practical Guide: Spaceship Operator (<=>)