4 ms·
Are you actually implying with the above example code that you can call a undefined "super" constructor on an interface and pass it the "balance" variable, whic
by euroclydon 14y ago
Are you actually implying with the above example code that you can call a undefined "super" constructor on an interface and pass it the "balance" variable, which the interface's non-existent constructor would presumably match by name?
- scanr 14y agoNope. I probably should have used a different example for the interface. The examples are from the full spec where they progress a little more gradually from a BankAccount interface to a BankAccount class to a CheckingAccount subclass.
- zokier 14y agoI haven't read the docs so I may be completely off. But that "super" syntax could be similar to "brace initialization" in C.