Yeah, the thing is, I use Java
I'm not familiar at all with functor, based on what you're saying, I can modify the behavior of my object by simply passing a functor to it ?
I see my Item class with a use() method, which should change depending on the type of object. I guess this is where I use a functor...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement