java - How to instantiate a class that has a constructor requiring an interface object -


I am trying to use the interactive broker Java API to see if I can do some algorithm trading. (On initial paper). I want to call a method called ReqMktDepth () which is in a class named EClientSocket . The EClientSocket constructor is required to pass any type of object AnyWrapper , and AnyWrapper is not a solid square. In theory, how do I do AnyWrapper class to EClientSocket constructor?

You need to create a cloud that is implemented by using AnyWrapper (using the "Tools" keyword) And then you have to define any methods defined by that interface.

Here's a simple tutorial:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -