This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Getting handle on methods overriding abstract Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Getting handle on methods overriding abstract" Watch "Getting handle on methods overriding abstract" New topic
Author

Getting handle on methods overriding abstract

Mike Cunningham
Ranch Hand

Joined: Nov 14, 2000
Posts: 130
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

Joined: Sep 22, 2001
Posts: 2591

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

Joined: Nov 14, 2000
Posts: 130
That helped out. Thanks Manish.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting handle on methods overriding abstract
 
jQuery in Action, 3rd edition