多态基础

package test2; public class duotai { public static void main(String []args) { chicken c=new homechicken();//多态,用大的去接受小的。 tools(c);//如果下面没有instanceof的话,报错,理由同下。 chicken yc=new yechicken();//多态,
相关文章
相关标签/搜索