在面向对象方法中,将逻辑上相关的数据以及行为绑定在一起,使信息对使用者隐蔽称为( )。当类中的属性或方法被设计为private时,(请作答此空)可以对其进行访问。
2023-09-01
B.只有此类中定义的方法
C.只有此类中定义的public方法
D.同一个包中的类中定义的方法
参考答案:B
封装是用来保持内部数据的隐蔽性;类的属性和方法分为public(所有类都可以访问)、private(仅本类内部可以访问)、protect(本类内部可访问、继承子类也可以访问)。
![]( //img1.runjiapp.com/duoteimg/tiku/images/pc/questionBank/main-list-title-icon.png)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_64.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_57.jpg)
三重 DES 加密使用 2 个密钥对明文进行 3 次加密,其密钥长度为(6)位。
2023-09-01
从业资格其它
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_82.jpg)
SHA-l 是一种针对不同输入生成(9)固定长度摘要的算法。
2023-09-01
从业资格其它
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_19.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_83.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_54.jpg)
2023-09-01
从业资格其它
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_22.jpg)
2023-09-01
从业资格其它
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_13.jpg)
2023-09-01
从业资格其它
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_46.jpg)
2023-09-01
从业资格其它
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_17.jpg)
2023-09-01
从业资格其它
热门标签