File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes $how me the method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "$how me the method" Watch "$how me the method" New topic

$how me the method

Robert MacEwan

Joined: Dec 22, 2003
Posts: 2
class Outer
private int size;
private String thoughts = "My private thoughts";
void doStuff()

Is doStuff() a method?

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24166

Hi Robert,
Welcome to JavaRanch!
Yes, doStuff is a method, while size and thoughts are member variables.

[Jess in Action][AskingGoodQuestions]
Robert MacEwan

Joined: Dec 22, 2003
Posts: 2
Thank you.
I agree. Here's the link:
subject: $how me the method
Similar Threads
needs explanation
curious why static methods shawdowed don't act like variables?
Instantiating Inner Classes
Protecting native calls
Static Doubt