There are so many definitions of OOP out there, varying between different books, documentation and articles.

What really defines OOP?

  • owenfromcanada@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    11 months ago

    It’s the sound a Mid-Westerner makes when they’re trying to get past you.

    But for real, it’s because this was super common:

    typedef struct {
       // data structure
    } SomeDataStruct;
    
    void SomeFunction(SomeDataStruct * data) {
      // lots of functions like this
    }
    

    Like many things, once OOP became a thing, people started adding to it. This is why you get a ton of different definitions and such.