单项选择题X 纠错

A.They pass messages by modifying each other’s member variables
B.They pass messages by modifying the static member variables of each other’s classes
C.They pass messages by calling each other’s instance member methods
D.They pass messages by calling static member methods of each other’s classes.

参考答案:
查答案就用赞题库小程序 还有拍照搜题 语音搜题 快来试试吧
无需下载 立即使用

你可能喜欢

多项选择题

A.One object is created
B.Two objects are created
C.Three objects are created
D.One reference variable is created
E.Two reference variables are created
F.Three reference variables are created.

单项选择题

A.is also called a static member
B.is always a variable
C.is never a method
D.belongs to a single instance, not to the class as a whole
E.always represents an operation

单项选择题

A.what classes are instantiated from.
B.an instance of a class.
C.a blueprint for creating concrete realization of abstractions.
D.a reference to an attribute.
E.a variable.

单项选择题

A.an implementation of an abstraction.
B.an attribute defining the property of a particular abstraction.
C.a category of objects.
D.an operation defining the behavior for a particular abstraction.
E.a blueprint for making operations.

多项选择题

A.  void setVar (int a, int b, float c){ x = a; y = b; z = c; }
B. public void setVar(int a, float c, int b) { setVar(a, b, c); }
C. public void setVar(int a, float c, int b) { this(a, b, c); }
D. public void setVar(int a, float b){ x = a; z = b; }
E. public void setVar(int ax, int by, float cz) { x = ax; y = by; z = cz; }

多项选择题

A. Member data have no access modifiers.
B. Member data can be modified directly.
C. The access modifier for methods is protected.
D. The access modifier to member data is private.
E. Methods provide for access and modification of data.

单项选择题

A. An exception is thrown.
B. The code will not compile.
C. The program prints “null”
D. The program prints “blue”
E. The program prints “green”

赞题库

赞题库-搜题找答案

(已有500万+用户使用)


  • 历年真题

  • 章节练习

  • 每日一练

  • 高频考题

  • 错题收藏

  • 在线模考

  • 提分密卷

  • 模拟试题

无需下载 立即使用

版权所有©考试资料网(ppkao.com)All Rights Reserved