• Post Reply Bookmark Topic Watch Topic
  • New Topic

Static  RSS feed

 
Varnam Aayiram
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks...

The following is the class body I am working on:



I need to write code in the main method that will use the displayMultiple method. My question is, is there any way to access the displayMultiple method from the main method, without declaring displayMultiple as a static method? Hope somone can advise. Thanks.
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure.. create an Object for the DisplayableTestApp class and access the method using that object.
 
Varnam Aayiram
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Noted. Yes it works. Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!