r/programminghorror • • Jul 05 '26

c Enterprise level C code

Post image
347 Upvotes

57 comments sorted by

View all comments

Show parent comment

1

u/KennyFulgencio Jul 06 '26

how the heck do you remember that

3

u/DesiresQuiet Jul 06 '26

It was the use of the pet.MakeSound. It was used to show classes and have you could overwrite methods via abstraction. Not sure why it stuck this long. I think it made me laugh.

1

u/trees91 Jul 06 '26

Heh even in modern Java OOO college textbooks that’s the go to example, it’s classic. Okay I say modern but I guess I finished school like 12 years ago so maybe it’s not but I bet it is 😅

1

u/TheChief275 Jul 07 '26

Oh yeah lol it's just a classic example that popped up when I was looking for an example for the post. I don't actually write in an OOP style so I needed some inspiration lol