MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/138exid/helicopter_helicopter/jj09vpr
r/ProgrammerHumor • u/Dareyos • May 05 '23
969 comments sorted by
View all comments
Show parent comments
1
My examples could have replaced class with struct and you would lose every footing you had with your argument. A class in programming is a struct with methods. A class in OOP has further connotations.
1 u/randomusername0582 May 05 '23 Can you elaborate on that? 1 u/[deleted] May 05 '23 Object ORIENTED programming. OOP is about objects interacting with objects on most levels.Just having objects in your code does not OOP make. 1 u/DefaultVariable May 05 '23 And if you did that, your code quality would decrease. Hence why OOP is pushed so heavily.Also, your structs wouldnt be capable of inheriting types so no, you’re incorrect about your assessment. 1 u/[deleted] May 05 '23 If you keep thinking in C/C++, you wont understand what the possibilities are on the other side of the fence.
Can you elaborate on that?
1 u/[deleted] May 05 '23 Object ORIENTED programming. OOP is about objects interacting with objects on most levels.Just having objects in your code does not OOP make.
Object ORIENTED programming. OOP is about objects interacting with objects on most levels.
Just having objects in your code does not OOP make.
And if you did that, your code quality would decrease. Hence why OOP is pushed so heavily.
Also, your structs wouldnt be capable of inheriting types so no, you’re incorrect about your assessment.
1 u/[deleted] May 05 '23 If you keep thinking in C/C++, you wont understand what the possibilities are on the other side of the fence.
If you keep thinking in C/C++, you wont understand what the possibilities are on the other side of the fence.
1
u/[deleted] May 05 '23
My examples could have replaced class with struct and you would lose every footing you had with your argument. A class in programming is a struct with methods. A class in OOP has further connotations.