Binding interface

Report a typo

Imagine that we are developing a bank system for working with multi-currency accounts:

interface Wallet
class UsdWallet: Wallet
class BtcWallet: Wallet

Write the code that will create the Wallet factory component with the BtcWallet implementation. Use Constructor DSL without lambda expressions:

val appModule = module {
    // your code here
}
Enter a short text
___

Create a free account to access the full topic