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
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
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
Sheriff
Posts: 28411
102
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.
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...