passing variables from main to private method

Hello!
I have a private method that calculates area.
I also have a public method that displays this calculated area.
I wish to pass two user-inputed variables (width and height) from the main function to the private function so that it can calculate area. However, I am not sure how to do this as I access the private method through the public method.
Please help!
Pass the parameters to your public method, then internally call your private method, passing again needed arguments.
THANK YOU SO MUCH!
Topic archived. No new replies allowed.