292

var Turtle1 var Turtle2 var Is_Turtle

you are viewing a single comment's thread
view the rest of the comments
[-] _stranger_@lemmy.world 3 points 3 months ago* (last edited 3 months ago)

I'm only commenting because the actual python is practically pseudo code:


# A turtle class
class Turtle:
    shell=True

# A boss class
class Boss:
    authority=True

#A class that inherits from another
class TigerTurtle(Turtle):
    fuzzy=True

# Multiple inheritance, or "The Devil's Playground"
class TigerBossTurtle(TigerTurtle, Boss):
    #  shell, authority, and fuzzy are all true
    ...
[-] ma1w4re@lemm.ee 2 points 3 months ago

It is simpler than my faulty memory remembers, time to learn python again ๐Ÿ˜

this post was submitted on 12 Sep 2024
292 points (96.2% liked)

Programmer Humor

19910 readers
2431 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS