Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Two more questions...  RSS feed

 
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!!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!