Q: Which statements regarding the following code are correct?
class Outer
{
private void Outer() { }
protected class Inner
{
}
}
A: This code will not compile.
-------
Could you please elaborate on this answer or give a short explanation?
Because for me it is rather unclear. Thanks in advance.
Q 53 (scjp.v6.2.443)
Moderator: admin
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: Q 53 (scjp.v6.2.443)
The option you've quoted is not marked as a right answer. Option 5, "Constructor for Inner is protected." is marked as the right answer. A detailed explanation is already provided.
HTH,
Paul.
HTH,
Paul.
Who is online
Users browsing this forum: Bing [Bot] and 13 guests