首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
What object-oriented programming term, or concept, is illustrated in the graphic that follows?
What object-oriented programming term, or concept, is illustrated in the graphic that follows?
admin
2013-12-19
80
问题
What object-oriented programming term, or concept, is illustrated in the graphic that follows?
选项
A、Methods
B、Messages
C、Abstraction
D、Data hiding
答案
B
解析
B正确。在面向对象编程中,对象需要彼此能够通信,这是通过发送给接收对象的应用程序编程接口(Application Program Interface,API)的消息来实现的。例如,如果对象A需要告诉对象B某个用户的支票账户应被减去40美元,它会向对象B发送一个消息。这个消息由目的地、需要执行的方法和相应的参数组成。此图显示了对象使用它们的消息发送功能而进行的通信。
A不正确。因为方法指的是对象能够执行的功能或者程序,而不是对象彼此进。行通信的方式。例如,对象可以被构建成接收来自用户的数据并对该请求格式化,便于后端服务器能够理解并处理。这些功能就是特定对象可以执行的方法——本质上就是这个对象能做的事。另外一个对象可能执行从数据库中提取数据并用此必要信息填充Web页面的方法。这些只是不同方法对象可以被执行的例子中的一部分。
C不正确。因为抽象指的是一种隐藏不必要的细节,保证只有重要的、固有的属性才会被检查和审核的能力。抽象使得系统的概念方面得以分离。例如,如果软件架构师需要了解数据如何流经该程序,她应该先了解这个程序的大体情况,并一路跟踪数据从第一次作为输入进入这个程序到作为输出退出这个程序的所有步骤。抽象可以由OOP提供,但这不是本图中所显示的内容。
D不正确。因为数据隐藏指的是对象内的数据和操作对于其他对象是不可见的。每个对象分别封装它的数据和过程。数据隐藏保护了对象的私人数据免受外来访问。任何对象都不应该也没必要访问另一个对象的内部数据或者过程。数据隐藏本质上是保护本应该是秘密的东西。
转载请注明原文地址:https://kaotiyun.com/show/4NhZ777K
0
CISSP认证
相关试题推荐
Salt,shellsormetalsarestillusedasmoneyinout-the-waypartsoftheworldtoday.Saltmayseemratherastrange【C1】__
AsformercolonistsofGreatBritain,theFoundingFathersoftheUnitedStatesadoptedmuchofthelegalsystemofGreatBritai
TheTreasurycouldpocket20millionayearinextrafinesoncethecountry’sspeedcameranetworkisexpanded.Motoringorgani
TheTreasurycouldpocket20millionayearinextrafinesoncethecountry’sspeedcameranetworkisexpanded.Motoringorgani
Thetranslatormusthaveanexcellent,up-to-dateknowledgeofhis【C1】______languages,fullfacilityinthehandlingofhistarg
Backinthe1990s,awell-knowncomputerscientisthadanunusualwayofintroducinghimselftowomen.Accordingtoindustrylor
Severaltypesoffinancialriskareencounteredininternationalmarketing;themajorproblemsincludecommercial,political,an
[A]Marketforglasscraftsisgrowing[B]Dependenceofcomputerdevelopmentonglass[C]Behindtheadaptabilityofglass[D]
Everytwoweeksalanguagedisappears.By2100nearlyhalfofthe6,000spokentodaymaybegone.Migration,eitherbetweencoun
Theconceptofmanversusmachineisatleastasoldastheindustrialrevolution,butthisphenomenontendstobemostacutely
随机试题
Theyoungergeneration______greatlyfromtheoldergenerationinmanyways.
对于蛋白质二级结构不正确的叙述是
账务处理模块中会计科目设置好后,也可随时变动。()
以()财产做抵押的,应当办理抵押登记,抵押权自登记时设立。
()适用于表彰先进、批评错误、传达重要精神和告知重要情况。
职业道德范畴是反映职业道德现象的特性、方面和关系的基本概念,以下不属于社会主义职业道德范畴的是()。
The______resultwillbeannouncednextweek.
Announcementfrom[Student]ServicesTheSybertUniversity[Student]ServicesDepartmentishappytoannounceanewtransport
TheU.S.aircraftmanufacturerBoeingCompanyisdenyingreportthat______.
Ifyouwanttoteachyourchildrenhowtosaysorry,youmustbegoodatsayingityourself,especiallytoyourownchildren.Bu
最新回复
(
0
)