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
Ron McLeod
Paul Clapham
Devaka Cooray
Tim Cooke
Sheriffs:
Rob Spoor
Liutauras Vilda
paul wheaton
Saloon Keepers:
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Piet Souris
Bartenders:
Stephan van Hulst
Forum:
Java in General
Call Lot of Classes in a Particular Order
Natalie Kopple
Ranch Hand
Posts: 325
posted 13 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 13 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: 28308
95
I like...
posted 13 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.
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
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...