day11-接口作为成员变量类型(skill)

This commit is contained in:
2026-05-30 14:37:27 +08:00
parent 21914a5025
commit c4394dc6b5
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package com.inmind.class_member_var09;
public interface Skill {
//施放技能的方法
void outSkill();
String getName();
}