2 ms·
Objects all have state and certain behaviors attributed to the object. In common OOP vernacular this is known as state and methods. A real world analogy is a ba
by crimsonalucard 9y ago
Objects all have state and certain behaviors attributed to the object. In common OOP vernacular this is known as state and methods. A real world analogy is a ball that can bounce and also has a bounciness coefficient, the ability to bounce is the method and the bounciness coefficient is the state. This makes sense.
A burrito is a monad. Explain this.