I never understood the difference between class and structs. From my limited knowledge both Python classes and Rust structs can have methods and attributes.
Now that you mention it, I do remember learning about features of OOP in my 9th grade Java class. Inheritance was one of them. There were other terms as well that I can’t recall clearly.
class Communism: pass
tankies owned
We have no choice but to abandon communism…
Is this some sort of OOP joke I’m too Rust to understand?
I never understood the difference between class and structs. From my limited knowledge both Python classes and Rust structs can have methods and attributes.
Structs are based, classes are cringe.
Classes have inheritance. Rust structs don’t.
Now that you mention it, I do remember learning about features of OOP in my 9th grade Java class. Inheritance was one of them. There were other terms as well that I can’t recall clearly.
i finally passed a class! my parents would be so proud!