posted 20 years ago
Can a nested class be declared in an Interface?
Question 15
Which of the follow are true statements.
a. A nested class is any class that is declared within the body of another class or interface.
b. A nested class can not be declared within the body of an interface declaration.
c. An inner class is a nested class that is not static.
d. A nested class can not be declared static.
e. A named class is any class that is not anonymous
The answers provided were a,c, & e - seems like the question is saying that b is 'true' since it is posed in a 'can not' formulation.
I can't create an example that compiles to prove that b should be true - any clarification most appreciated.
Thanks,
Doug