标签:pen 技术 tin one image eve ati turn col
Employee:
package text1; public class Employee { public String getInfo(){ return "我是王大錘"; } }
Manager:
package text1; public class Manager { public String getInfo(){ return "子類,我是明日科技的經理"; } }
Test:
package text1; public class Test { public static void main(String[] args) { Employee employee = new Employee(); System.out.println(employee.getInfo()); Manager manager = new Manager(); System.out.println(manager.getInfo()); } }
标签:pen 技术 tin one image eve ati turn col
原文地址:https://www.cnblogs.com/helloworld2019/p/10626522.html