Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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.
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!