wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inner class" Watch "Inner class" New topic
Author

Inner class

Juan Manuel Alberto de los Santos
Ranch Hand

Joined: Jun 26, 2008
Posts: 48
How can i make the dog bark ?



Thanks !
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
This is how you would make it bark.



However if you want to execute this class from command line, you must change the visibility of main class to public, else JVM wouldn't be able to access it.
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
and then execute the class as an application



Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Inner class