139
submitted 1 year ago by Hazel@lemmygrad.ml to c/memes@lemmygrad.ml
you are viewing a single comment's thread
view the rest of the comments
[-] kredditacc@lemmygrad.ml 7 points 1 year ago

Is this some sort of OOP joke I'm too Rust to understand?

[-] ksynwa@lemmygrad.ml 3 points 1 year ago

I never understood the difference between class and structs. From my limited knowledge both Python classes and Rust structs can have methods and attributes.

[-] CannotSleep420@lemmygrad.ml 6 points 1 year ago

Structs are based, classes are cringe.

[-] kredditacc@lemmygrad.ml 4 points 1 year ago

Classes have inheritance. Rust structs don't.

[-] ksynwa@lemmygrad.ml 3 points 1 year ago

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.

this post was submitted on 29 Nov 2023
139 points (98.6% liked)

Memes

3903 readers
11 users here now

Good memes, bad memes, unite towards a united front.

founded 5 years ago
MODERATORS