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.
You might also like to view...
All import declarations must be placed
a. inside the class declaration’s body. b. before the class declaration. c. after the class declaration. d. all of the above will work.
When you generate subtotals, all levels of detail show in a(n) ____.
A. outline B. extracted table C. list range D. graph