This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forward reference,very confused rules

 
Shiva Mohan
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://radio.javaranch.com/corey/2004/05/13/1084483439000.html

I don�t able to get the below three rules.Can anyone please explain each one as coding.

The declaration of a member needs to appear before it is used only if the member is an instance (respectively static) field of a class or interface C and all of the following conditions hold:

�The usage occurs in an instance (respectively static) variable initializer of C or in an instance (respectively static) initializer of C.
�The usage is not on the left hand side of an assignment.
�C is the innermost class or interface enclosing the usage.
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the forward reference rules?
There is an example to match rules.
 
Shiva Mohan
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much wise.This is what exactly i want.I have read that excellent explanation and got it easily.
Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic