摘要: 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()); ... 阅读全文
posted @ 2013-02-10 22:36 wouldguan 阅读(355) 评论(0) 推荐(0) 编辑