This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

return statement usages

 
saloni jhanwar
Ranch Hand
Posts: 583
Firefox Browser Notepad Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folk
So far i know that i can use return statement inside a method or inside a loop or inside if-else statement.Is something remaining where we use it ?
 
Gaurangkumar Khalasi
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
saloni jhanwar wrote: i know that i can use return statement inside a method or inside a loop or inside if-else statement.Is something remaining where we use it ?


In Constructor, for example try out the following:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic