Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Call Lot of Classes in a Particular Order
Natalie Kopple
Ranch Hand
Posts: 325
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have many classes. I have to call each of them in a particular order (sequential order is important). Does the code shown below suffice? Or I have to do more than that?
Class1 c1 = new Class1(); Class2 c2 = new Class2(); Class3 c3 = new Class3(); ..... .....
Matthew Brown
Bartender
Posts: 4568
9
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Well, that requirement is pretty vague, but you're not "calling" those classes. You're creating instances of them. Is that what you want to do?
Paul Clapham
Marshal
Posts: 28177
95
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
And yes,
Java
code like that is executed in the order it's written in.
This will take every ounce of my mental strength! All for a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Calling constructors of inherited classes
Accessing component from main class.... Help!
call to JTextArea.getText() is not getting current text
How to invoke a grand-parent method?
class inheritance
More...