Forums Register Login

urgent Please help

+Pie Number of slices to send: Send
I have a Factoryclass with on constructor using diferent paramenters .. one is another class object.
I have a situation where 2 different classes has to use same FactoryClass.
But Factoryclass constructor has to take 1 class object at a time..
have to use this object in rest of the class.
my question is how can we achieve this ..

can we put 2 constructors in program with differnt parameters ? if yes How we will match.
Suppose first constructor is for MannualBillingReportManger.
And another contther is for BillingReportCompanyManger.
Inside FActoryclass if we use MannualBillingReportManger constructor we have to use this object in rest of hte class. vice versa.
please help me
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
What have you tried? You can surely make two constructors with different arguments. Give it a shot and see what happens!
I was her plaything! And so was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 907 times.
Similar Threads
issue with obtaining class name from Object passed
how to call object in another class?
related to Abstract class
HashMap
What exactly System.out.println() is?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:41:34.