参考并摘自:http://www.runoob.com/java/java-encapsulation.html 在面向对象的程序设计方法中,封装(英语 :Encapsulation)是指一种将函数接口的实现细节部分包装、隐藏起来的方法。 封装可以被认为是一个保护屏障,防止该类的代码和数据被外部类定 Read More
posted @ 2018-03-12 16:07 happy_xiaoxiao Views(110) Comments(0) Diggs(0) Edit