GeeCON Prague 2014*
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
Author

$how me the method

Robert MacEwan
Greenhorn

Joined: Dec 22, 2003
Posts: 2
class Outer
{
private int size;
private String thoughts = "My private thoughts";
void doStuff()
{
System.out.println(thoughts);
}
}

Is doStuff() a method?


macewan
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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


[Jess in Action][AskingGoodQuestions]
Robert MacEwan
Greenhorn

Joined: Dec 22, 2003
Posts: 2
Thank you.
 
GeeCON Prague 2014
 
subject: $how me the method