Java的三大特性:多态.封装.继承. Java程序设计尊崇的思想:高内聚.低耦合. 多态性:Java官方给出的定义: The dictionary definition of polymorphism refers to a principle in biology in which an organism or species can have many different forms or stages. This principle can also be applied to obje
封装性在Java当中的体现: 1.方法就是一种封装:[如下代码示例所示,获取最大数的getMax方法就是一种封装] 2.关键字private也是一种封装. 封装就是将一些细节信息隐藏起来,对于外界不可见. public class Demo02Method { public static void main(String[] args) { int[] array = {5,15,25,20,100}; int max = getMax(array); System.out.println("最