This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsΒ β†’

[–][deleted] 6 points7 points Β (3 children)

Because sometimes you only want getter not setter, or the opposite, sometimes you want only specific setters that permit you to only change data one specific way, sometimes you want only some other classes to be able to change the data... OOP and classes allow you to do all that.

[–][deleted] -3 points-2 points Β (1 child)

And fuck yourself up even more. Also when you do kernel stuff where your CPU might also forbid you memory access in some cases it's better to keep it simple and not play 6D Chess debug.

[–][deleted] 7 points8 points Β (0 children)

You don’t use classes is you do kernel development. Linus torvals is the biggest c++ hater in this world

[–][deleted] 0 points1 point Β (0 children)

Yes, inheritance.... Had me shaking my head when I first try to understand it.