aspose file tools*
The moose likes Beginning Java and the fly likes java classes-fundamentals Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java classes-fundamentals" Watch "java classes-fundamentals" New topic
Author

java classes-fundamentals

Abid Ramay
Ranch Hand

Joined: Apr 06, 2013
Posts: 43




hi all

have started working on classes, i have these two classes in two seperate files -

when initialize the instance of class "mybox.width=30;" - it says 'width cannot be resolved or is not a files'
i am using eclipse, everything works fine in note pad... thanks for your help
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8248
    
  23

Abid Ramay wrote:when initialize the instance of class "mybox.width=30;" - it says 'width cannot be resolved or is not a files'

Check your spelling. Compilers are very finicky about things like that.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Abid Ramay
Ranch Hand

Joined: Apr 06, 2013
Posts: 43
@Winston Gutkowski -- ahh cool man, i just made a fool out of myself ;P

cheers
Abid Ramay
Ranch Hand

Joined: Apr 06, 2013
Posts: 43
hi again

actually its still the same .. sorry for confusion

thanks
Charles D. Ward
Ranch Hand

Joined: May 12, 2013
Posts: 53
    
    1
You have this in your Box class:



And in your other class you have this:

Abid Ramay
Ranch Hand

Joined: Apr 06, 2013
Posts: 43
@Charles D. Ward - the mistake is corrected .. i am seeing this abnormal behaviour .. it's gives you an error and if i type it again .. it goes away.

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java classes-fundamentals