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

Two more questions...

 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the syntax to write method with and without parameters and with an without return value?
What is the syntax to access a member of an object?
Thanks
Rob
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here are a variety of methods with and without return values, with and without parameters. The names should be pretty self explanatory.

To access members of an object, you use the . operator:

Hope that helps!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic