• Post Reply Bookmark Topic Watch Topic
  • New Topic

Method  RSS feed

 
Aretha Clark
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone know where i can find some very basic examples of how to add a second method to existing code
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you create your first method? Now just repeat the process and you have your second method.

Just make sure that the new method does not have the exact same name and parameter types.
 
Bill Cruise
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't have access to the source code, you might be interested in learning about Inheritance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!