Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting handle on methods overriding abstract

 
Mike Cunningham
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I make use of the following println statements in my main method? The problem I'm running into is that I'm trying to reference a non-static method from a static method. Any help would be much appreciated. Here's the code:

[This message has been edited by Mike Cunningham (edited December 11, 2001).]
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's how your main will look like -

Typically, in the main method you create an object of the desired class, and invoke class methods using that object.

HTH,
- Manish
 
Mike Cunningham
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That helped out. Thanks Manish.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic