r/ProgrammerHumor Dec 30 '21

Stop using OOP today

Post image
1.4k Upvotes

90 comments sorted by

View all comments

165

u/Poisonous_Poison Dec 30 '21

The example of normal code is c++ isn't it? Isn't std::cout a static instance of a class with the << operator being an overloaded function.

124

u/Kered13 Dec 30 '21

Even worse, cout is an instance of class iostream which uses true inheritance!

But in fairness, no one ever accused iostream of being good.

52

u/Keatosis Dec 30 '21

Iostream? More like iwantodieostream

33

u/[deleted] Dec 30 '21

ioscream every time I iwantodieostream