标签:
interface ClassName{
public String getClassName();
}
class Company implements ClassName{
public String getClassName(){
return "Company";
}
}
public class per02 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
ClassName name =new Company();
System.out.print(name.getClassName());
}
}
标签:
原文地址:http://www.cnblogs.com/hell/p/5369072.html