题目
题目

Fal25_CS003C_74229 Ch. 9 Pre-Quiz (Remotely Proctored)

单项选择题

What is the purpose of a method?

选项
A.Enables changes in the implementation without affecting users of a class
B.Provide comments about the program implementation
C.To access the instance variables of the object on which it acts
D.Store the data for all objects created by the same class
查看解析

查看解析

标准答案
Please login to view
思路分析
When evaluating the purpose of a method in object-oriented design, one core theme is encapsulation and API stability. Option 1: 'Enables changes in the implementation without affecting users of a class' highlights this idea. By coding behavior behind a defined method interface, the internal details can be changed without ......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!