| | |
accessibility
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
Let's say I have two classes, Class1, and Class2.....
Class2 creates and instance of Class1 and calls one of it's methods like this:
Now, that would work...But, could you have just the class variable instead of the class instance variable like this:
Or would that not work...What I was thinking, was in order to do that, Class1 would have to be static..Right?
Class2 creates and instance of Class1 and calls one of it's methods like this:
Java Syntax (Toggle Plain Text)
Class 2 { Class1 c1 =new Class1(); c1.myMethod(); }
Now, that would work...But, could you have just the class variable instead of the class instance variable like this:
Java Syntax (Toggle Plain Text)
Class 2 { Class1.myMethod(); }
Or would that not work...What I was thinking, was in order to do that, Class1 would have to be static..Right?
![]() |
Similar Threads
- Design your pages for accessibility (HTML and CSS)
- Jaws - helping accessibility how? (IT Professionals' Lounge)
- AAA - Accessibility, Accessibility, Accessibility (IT Professionals' Lounge)
- 'Inconsistent accessibility' with multiple classes (C#)
- Accessibility Checker (Site Layout and Usability)
- Website / Web Accessibility Consultant (Post your Resume)
- All You Need for Accessibility - Resources List (Site Layout and Usability)
- Set Accessibility Features for People Who are Blind or Who Have Low Vision in WinXP (Windows tips 'n' tweaks)
Other Threads in the Java Forum
- Previous Thread: Question about synchronized
- Next Thread: JRadioButtons not working in JMenu
| Thread Tools | Search this Thread |
-xlint add android api applet application array arrays automation bi binary blackberry bluetooth chat class classes client code compile compiler component converter database digit eclipse equation error event exception fractal freeze functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide idea image input int integer j2me java javame javaprojects jetbrains jni jpanel jtable julia learningresources linux list login loop main map method methods mobile myregfun netbeans newbie nonstatic notdisplaying oracle page pearl print problem program programming project qt recursion scanner screen scrollbar server set size sms sort spamblocker sql string swing system thread threads time tree variablebinding windows xor






