public interface Tree {
	public static String name="树名";
	default public void run1(){
		System.out.println(name);
	};
}

  

public class YangShu implements Tree{
	public static void main(String[] args) {
		YangShu s = new YangShu();
		s.run1();
	}
	@Override
	public void run1() {
		System.out.println("杨树");
	}
}

 

相关文章:

  • 2021-09-27
  • 2021-12-05
  • 2021-08-30
  • 2021-12-20
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-11
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
相关资源
相似解决方案