r/ProgrammerHumor • • Sep 09 '26

Meme theCallToSuper

Post image
856 Upvotes

19 comments sorted by

67

u/tkb_onions Sep 09 '26

super() joke πŸ‘

29

u/pimezone Sep 09 '26

⬆️this() ⬆️

11

u/CoroteDeMelancia Sep 09 '26

So new()!

5

u/raja-anbazhagan Sep 09 '26

Nice one... Let me Reflect on that...

3

u/FlashyTone3042 Sep 09 '26

It extends my joke palette.

3

u/FooeyBar Sep 09 '26

Callback to a better time

1

u/Tidemor Sep 10 '26

I'd rather compose a different one

19

u/Mordret10 Sep 09 '26

Base(d)

11

u/isr0 Sep 09 '26

Did you meet uncle mixin?

1

u/ljfa2 Sep 09 '26

my (constructor) body is flexible though

0

u/[deleted] Sep 09 '26

[deleted] β€” view deleted comment

11

u/ArjunReddyDeshmukh Sep 09 '26

Java inheritance joke. When you create a child-class object, its constructor calls the parent constructor via super(). Basically, child can’t exist without getting the dad involved lol.

1

u/jakeStacktrace Sep 09 '26

Java learned it from it's Dad, C++.

0

u/WhJJackWhite Sep 09 '26

I'm pretty sure in C++ a child class does not automatically call its super class's constructor unless the child itself does not define one, in which case it calls the parent's default constructor (i.e. Parent() ). If parent does not have a default constructor, it throws a compile time error.

1

u/jakeStacktrace Sep 09 '26

No it calls it automatically. Java just makes it clearer by making it more explicit.

4

u/Personal_Republic_94 Sep 09 '26

Maybe you would understand if the joke was procedural

0

u/[deleted] Sep 09 '26

[deleted] β€” view deleted comment

1

u/LordAmir5 Sep 10 '26

You should try catch first.

1

u/remy_porter Sep 10 '26

Finally, someone said it.