I have 2 classes by now..~ A and B..~
I have created class A for certain functionality purpose . And at class B , i have created an object of class A .
If there any chances that for me to create another of main method in class A while i still have the object of the class A in class B ??
Main method in each class..~
Started by
Guest_R3.RyozKidz_*
, Jan 12 2010 10:09 PM
1 reply to this topic
#1
Guest_R3.RyozKidz_*
Posted 12 January 2010 - 10:09 PM
Guest_R3.RyozKidz_*
|
|
|
#2
Posted 13 January 2010 - 03:03 AM
Why would you want to do that? Main function is a place where program starts to run. If you need two different starting locations, then create two different starting classes, but don't use one in the other.
Make three classes: A, B and C.
So, C contains the logic and A, B contains different starting points, or main methods.
Make three classes: A, B and C.
So, C contains the logic and A, B contains different starting points, or main methods.


Sign In
Create Account

Back to top










