• Post Reply Bookmark Topic Watch Topic
  • New Topic

new syntax  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys i am reading a textbook and i just found a new "new" syntax that i have never seen before.

any explanation on code like this?



rce.new Runner

well i dont type all the code after this code but i think there is nothing to do further with RaceConditionExample class

of what i knew, runner johnson = new Runner("johnson");

but what does rce.new mean? how does it different from the normal new statement? does the new object created different from the normal new statement?

thanks
 
author
Marshal
Posts: 23439
138
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is how you instantiate an inner class using an outer class.

Henry
 
joe garcia
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you i will digg into this more thanks
 
Ranch Hand
Posts: 492
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for more info please see this
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!