Java Interface : Use default method implementation in implementation classes

后端 未结 0 1874
温柔的废话
温柔的废话 2021-01-13 18:12

I have an interface and its 2 or more implementations say,

public interface IProcessor {
  default void method1() {
   //logic
  }
  default void method2() {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题