【发布时间】:2019-09-30 21:02:40
【问题描述】:
在如何使用以下代码或什至可能时遇到问题。 我是新来的。 我有以下内容:
variables.java
public interface variables extends library{
public int func1(String a, String b);
public int func2(String a, String b);
}
CallVariables.java
public CallVariables extends variables{
String hi = "Hi";
String by = "Bye";
//Then here somehow call my variables.java and be able to use it...
}
main.java
// Now, here I want to be able to actually call the first or either the second .java class.
// Is this possible? If yes, then how?
我想知道这是否可能,如果可以,请提供示例。
【问题讨论】: