摘要:
package com.temp;import java.util.ArrayList;public class PolymorphismTest{ /** * @param args */ public static void main(String[] args) { ArrayList<Human> persons = new ArrayList<Human>(); persons.add(new Male()); persons.add(new Female()); ... 阅读全文