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.
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.