2 ms·
Interface methods is an attempt to add traits to Java. I find it especially nice that interface methods are insulated between interfaces. I find traits a much b
by nine_k 10y ago
Interface methods is an attempt to add traits to Java. I find it especially nice that interface methods are insulated between interfaces. I find traits a much better approach than traditional inheritance.
You can inherit from only one base class; if Java had multiple inheritance, as C++ has, a number of other problems would arise.