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

Memes

4348 readers
34 users here now

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

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ksynwa@lemmygrad.ml 15 points 2 years ago (7 children)
class Communism:
    pass

tankies owned

[–] kredditacc@lemmygrad.ml 7 points 2 years ago (4 children)

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

[–] ksynwa@lemmygrad.ml 3 points 2 years ago (3 children)

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

[–] kredditacc@lemmygrad.ml 4 points 2 years ago (1 children)

Classes have inheritance. Rust structs don't.

[–] ksynwa@lemmygrad.ml 3 points 2 years 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.

load more comments (1 replies)
load more comments (1 replies)
load more comments (3 replies)