Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Inheritance Posted by rkearney on 28 May 2012 at 9:24 AM
Hi,

I am trying to understand what is happening here. I have 2 classes a Master class with all my methods and other classes which I call to the Master Class. I am a novice so bear with me here. The question is why do the variable go back to null when I return to the calling class TestCase13_2 . the variable are formattedDate/formattedDateEnd in the GenerateDates method

I assume it is something to do with inheritance , as what is a solution to make these variables visible to all classes

See attachment

thanks


Report
Re: Inheritance Posted by Wirus on 29 May 2012 at 1:51 AM
Hmm, I can't see any attachments. Is it because you haven't add them, or maybe my rss reader doesn't show them?


Hi,
Could you add minimized version of your code, on which we can see your problem?


Wirus



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.