Skip to content

Instantly share code, notes, and snippets.

View VarGlan's full-sized avatar

Benjamin Galan VarGlan

  • Universidad Nacional Politecnica
  • Nicaragua
View GitHub Profile
@VarGlan
VarGlan / main.dart
Created March 19, 2023 02:11
wild-aurora-9251
class Bicycle {
int cadence;
int _speed = 0;
int get speed => _speed;
int gear;
Bicycle(this.cadence, this.gear);
void applyBrake(int decrement) {
_speed -= decrement;