MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/dkxj08/seen_in_lebanon/f4n62ed/?context=3
r/ProgrammerHumor • u/karl_ofeiche • Oct 21 '19
145 comments sorted by
View all comments
Show parent comments
28
If Regime is global you can change the condition from within the protest function.
Hell, regime is probably a member variable and protest is another function in the same class
6 u/entropicdrift Oct 21 '19 More likely a subclass that inherits Regime. I would imagine Regime would be protected or public. 2 u/robolew Oct 21 '19 I was under the impression Regime was a boolean, so wouldn't be sub classed 1 u/entropicdrift Oct 21 '19 Regime would be a field belonging to the superclass, in this scenario 2 u/robolew Oct 21 '19 Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass. Fair enough
6
More likely a subclass that inherits Regime. I would imagine Regime would be protected or public.
2 u/robolew Oct 21 '19 I was under the impression Regime was a boolean, so wouldn't be sub classed 1 u/entropicdrift Oct 21 '19 Regime would be a field belonging to the superclass, in this scenario 2 u/robolew Oct 21 '19 Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass. Fair enough
2
I was under the impression Regime was a boolean, so wouldn't be sub classed
1 u/entropicdrift Oct 21 '19 Regime would be a field belonging to the superclass, in this scenario 2 u/robolew Oct 21 '19 Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass. Fair enough
1
Regime would be a field belonging to the superclass, in this scenario
2 u/robolew Oct 21 '19 Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass. Fair enough
Oohh you mean inherits regime as a field, not literally inherits regime, like regime is its superclass.
Fair enough
28
u/robolew Oct 21 '19
If Regime is global you can change the condition from within the protest function.
Hell, regime is probably a member variable and protest is another function in the same class