This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anonymous Inner class

 
Shiva Mohan
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying here to display "anonymous popcorn".



Please help me what i am doing here wrong.
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Popcorn myPopcorn=new Popcorn();
You can use:

or

[ May 11, 2006: Message edited by: wise owen ]
 
Shiva Mohan
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wise-Thank you very much and i got it.
 
Shiva Mohan
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working againg on Argument defined -Anonymous inner class and i coultn't figure out how to correct the error.Please help me.


how the line 1 is showing error? It seems like i have given correctly.
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I had rewrited some of your codes to make it work. You can see where I had made changes.
[ May 11, 2006: Message edited by: wise owen ]
 
Shaliey Gowtham
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shiva,You missed the closing curly braces inside the parameter call and have added it outside the paranthesis.
Could you get it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic