Tag Info

New answers tagged


The way you're showing it now ("I instantiate the BallEntity this way"), it is being done by the implementation (code) that calls the constructor to create BallEntity. To be clear, the point is that the way you're showing it, everywhere that you create a BallEntity (whether in separate classes or multiple places within the same class), you're re-specifying ...


As some of the comments mentioned, you may be either consuming the library incorrectly or it may not be a well designed library. But ignoring this, a variation fa├žade pattern seems appropriate. I don't have enough information about your application, but I can think of two approaches off of the top of my head: Simple class MyObject { private ...

Top 50 recent answers are included