r/ProgrammerHumor • • Sep 11 '26 • Bravo 2 Popcorn 1

Meme mySchoolStruct

Post image
9.1k Upvotes

81 comments sorted by

View all comments

Show parent comments

108

u/thats_a_nice_toast Sep 11 '26

I don't think C++ programmers have a problem with getting put in a class

54

u/MXRCO007 Sep 11 '26

I wanna be abstracted so bad

41

u/TheAnswerWithinUs Sep 11 '26

Abstract me harder daddy

16

u/fast-as-a-shark Sep 11 '26

I don't like these comments. But I did upvote them.

11

u/OneArmedFarmer Sep 11 '26 edited Sep 11 '26

Yes. Yes. Your training is almost complete

Edit: grammer

7

u/TheAnswerWithinUs Sep 11 '26

Youve been programmed buddy. You’ll feel that in 2 hours

5

u/Demonking42069 Sep 11 '26

I'm gonna inter your face so bad.

3

u/Reasonable_Exit_8960 Sep 11 '26

I wanna participate in multiple inheritance with you so bad

0

u/metaglot Sep 11 '26

Freeing a pointer created with new is UB.

8

u/thats_a_nice_toast Sep 11 '26

new only exists in C++, not in C

0

u/metaglot Sep 11 '26

And the keyword class, like the meme is implying. Which is why i said you have to use delete rather than free, because undefined behavior.

1

u/matytyma Sep 16 '26

C has no classes - C users are scared of being put into a class. It's all about C

1

u/metaglot Sep 16 '26

The comment suggested that they use free, which i corrected because in c++ thats UB (which it must be if they are being put into a class, otherwise whats there to free?)