Solved

Which of the Following Statements About an Inner Class Is

Question 74

Multiple Choice

Which of the following statements about an inner class is true?


A) An inner class may not be declared within a method of the enclosing scope.
B) An inner class may only be declared within a method of the enclosing scope.
C) An inner class can access variables from the enclosing scope only if they are passed as constructor or method parameters.
D) The methods of an inner class can access variables declared in the enclosing scope.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions