Question at position 3 What is the main benefit of encapsulation in OOP?It makes code run fasterIt allows multiple inheritanceIt hides internal implementation details and protects data it eliminates the need for both implicit and explicit constructorsClear my selection单项选择题
A
It makes code run faster
B
It allows multiple inheritance
C
It hides internal implementation details and protects data
D
it eliminates the need for both implicit and explicit constructors
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
Why is declaring instance variables as private considered good encapsulation practice?
One advantage of designing functions as black boxes is that
Question at position 24 What does encapsulation mainly protect against, according to the slides?Overriding methodsSlowing down the programMaking too many classesAccidental access to internal dataClear my selection
Question at position 17 What is the main purpose of encapsulation?To easily increase the number of available methods in the classTo create multiple child classesTo bundle data and methods together and protect internal dataTo override methods and create new behaviorClear my selection
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!