08 2015 档案
摘要:1) In the process of inheritance, the contants have same names in super class would not be overrided but be hidden. However the methods have same name...
阅读全文
摘要:This is the super class Human:class Human { String name = "Human"; String sex = "Humanity"; public String getHuman(){ return this.name...
阅读全文
摘要:leetCode problems of Algotithms从今天开始尝试用纯英文写随笔,当是锻炼自己的英语水平吧。希望自己以后能看懂~Because I don't know that if the leetCode.com has any disagreements about sharing...
阅读全文
摘要:(1) 方法重载是让类以统一的方式处理不同类型数据的一种手段。多个同名函数同时存在,具有不同的参数个数/类型。重载Overloading是一个类中多态性的一种表现。(2)Java的方法重载,就是在类中可以创建多个方法,它们具有相同的名字,但具有不同的参数和不同的定义。调用方法时通过传递给它们的不同参...
阅读全文
浙公网安备 33010602011771号