《面向对象程序设计》在线测试 联系客服

发布时间 : 星期一 文章《面向对象程序设计》在线测试更新完毕开始阅读4dddc597bb1aa8114431b90d6c85ec3a87c28bf5

? ? ? ? ? ? 2.5 [多选] [对] 下面关于友元函数使用特点的说明正确的是( ) 3.1 [判断] [对] 友元只能访问类中的公有成员,不能访问私有成员。

3.2 [判断] [对] 友元函数的定义只能放在类的外部,与类的成员函数放在一起。 3.3 [判断] [对] 如果函数f()要操作类A和类B的私有成员,可以把f()声明为类A的成员函数,把类A声明为类B的友元类。

3.4 [判断] [对] 友元具有传递性,单向性和继承性的特点。 3.5 [判断] [对] 一个函数可以是多个类的友元函数。

版权申明

本文部分内容,包括文字、图片、以及设计等在网上搜集整理。版权为潘宏亮个人所有

This article includes some parts, including text, pictures, and design. Copyright is PanHongliang's personal ownership.

用户可将本文的内容或服务用于个人学习、研究或欣赏,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵犯本网站及相关权利人的合法权利。除此以外,将本文任何内容或服务用于其他用途时,须征得本人及相关权利人的书面许可,并支付报酬。

Users may use the contents or services of this article for personal study, research or appreciation, and other non-commercial or non-profit purposes, but at the same time, they shall abide by the provisions of copyright law and other relevant laws, and shall not infringe upon the legitimate rights of this website and its relevant obligees. In addition, when any content or service of this article is used for other purposes, written permission and remuneration shall be

obtained from the person concerned and the relevant obligee.

转载或引用本文内容必须是以新闻性或资料性公共免费信息为使用目的的合理、善意引用,不得对本文内容原意进行曲解、修改,并自负版权等法律责任。

Reproduction or quotation of the content of this article must be reasonable and good-faith citation for the use of news or informative public free information. It shall not misinterpret or modify the original intention of the content of this article, and shall bear legal liability such as copyright.