• Post Reply Bookmark Topic Watch Topic
  • New Topic

Use of final keyword with class object.  RSS feed

 
Catherine austin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came across a question in K&B which is



Can anyone explain line:9 and why do we get output :true true.
Thanks in advance
 
Campbell Ritchie
Marshal
Posts: 56527
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are going to have to go through the code with pencil and paper, until you get the two values in the print statement.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!