• lauha@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    3 hours ago

    I would imagine the class would be aDog and when you instantiate it the variable would be theDog.

    • alias_qr_rainmaker@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      arrow-down
      2
      ·
      3 hours ago

      “the dog” maps to dog, the = maps to “is now”, and Dog() maps to “a dog”, and (name=“Dog name”) maps to “with name dog name”

      So no, you’re wrong, lmao

      I’ve already written the transpiler