For example we have a class called Treatment. then in that class we have 2 functions that is treat() and treatmentStaff(). Function treatmentStaff() is called from treat().
In main, we create 2 objects for that class, namely Treatment treatmentA, treatmentB;
then we assign treatmentA.treatmentStaff(); , treatmentB.treatmentStaff();
I wanna ask, can we call the “treatingStaff()” method of “treatmentB” from the “treat()” method of “treatmentA”?
Thanks for the reply.