Concerning nested classes, which of the following are true?

a) You can define a class within a class.
b) The inner class must always be public
c) The inner class is within the scope of the outer class.
d) Qualification by the outer class name with the scope resolution operator is necessary to use the inner class outside the outer class.
e) A local class can contain static members.


a) You can define a class within a class. , c) The inner class is within the scope of the outer class. , and d) Qualification by the outer class name with the scope resolution operator is necessary to use the inner class outside the outer class.

b):A the inner class may be either public or private. e) is the opposite of a correct statement. A local class cannot have static members.

Computer Science & Information Technology

You might also like to view...

MC All methods must specify at least the______ parameter.

a) interpreter. b) object reference. c) access. d) None of the above.

Computer Science & Information Technology

What do each of the following acronyms stand for:

a) W3C. b) XML. c) DB-API. d) CGI. e) XHTML. f) TCP/IP. g) PSP. h) Tcl/Tk. i) SSL. j) HMD.

Computer Science & Information Technology

A(n) ________ file is an image file that has already been compressed

Fill in the blank(s) with correct word

Computer Science & Information Technology

If an employee does not want his/her phone number listed in a company database, and you want to enter two quotation marks with nothing between them to indicate an intentional nothing entry in the field, the ____________________ field property in the employee table must be set to Yes.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology