• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Sybex CSG17 - Appendix - Chapter 1 Question 12 Answer - Page 911

 
Greenhorn
Posts: 20
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The rationale behind why line 7 does not compile is incorrect. It states:

Finally, line 7 does not compile because fins is in scope and accessible only inside the instance initializer on line 3, making option D correct.



I believe this means to say that fins is out of scope.
 
Tim Mousaw
Greenhorn
Posts: 20
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, I just re-read this and realize my mistake. It says it is in scope only inside the initializer. Not that it is in scope on line 7.
reply
    Bookmark Topic Watch Topic
  • New Topic