JAVA 填充>_

2010-06-03 3:15 am
JAVA ge填充
()係空格

11. Keywords () and () are access modifiers.
12. Class members declared with access modifier () are accessible wherever the program has reference to an object of the class in which those members are defined.
13. Class members declared with access modifier () are accessible only to methods of the class in which those members are defined.

18. A () initializes the instance variables of an object of a class when the object is instantiated.
20. Instance variables are normally declared (), and methods are normally declared ().
16. It is possible to assign a superclass reference to a subclass variable by () the reference to the subclass type.
18. When a method is invoked through a superclass reference to a subclass object, Java executes the version of the method found in the ().

回答 (1)

2010-06-03 6:19 pm
✔ 最佳答案
11. Keywords () and () are access modifiers.

private, public

12. Class
members declared with access modifier () are accessible wherever the
program has reference to an object of the class in which those members
are defined.

public

13. Class members declared with access modifier () are
accessible only to methods of the class in which those members are
defined.

private


因為只有 10點, 所以只係答到咁多


收錄日期: 2021-04-13 17:18:08
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20100602000051KK01168

檢視 Wayback Machine 備份