this post was submitted on 21 Jan 2024
525 points (97.8% liked)
Programmer Humor
32576 readers
399 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
class Giraffe extends Neck {...}
or something like thatThat’s not how extends works 😂 you silly goose
What, you thought a giraffe was some sort of animal, and not a type of neck? Didn't you know that snakes, geese, and giraffes all evolved from the common neck: C. neckens?
That doesn't sound right, but I don't know enough about biology to dispute it
It's free style, another alternative if you prefer
class Giraffe extends Animal { this.neck = 10*super.neck; }
class Goose extends Silly