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

Native methods/member variables

 
Willie Toma
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can member variables, or any variables, be considered native?
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe only methods can be native.
Originally posted by Willie Toma:
Can member variables, or any variables, be considered native?


------------------
What's this H2SO4 doing in my fridge?? ( thud )
 
Snylt Master
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe Dale is right.
According to Complete java 2 Certification Study Guide:
I Quote "The native modifier can refer only to methods....Native
indicates that the body of a method is to be found elsewhere."
Hope this helps!
// SnyltMaster
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic