Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

given height, return inches in int

given one parameter at a time
6'0"
5'10"
5'10"
5'8"

want an object oriented method to return inches
72
70
70
68
ASKER CERTIFIED SOLUTION
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

Thank you.

Even though the second can be done in one line, I like the first more because it teaches me about object oriented programming.

I would like to know more about why/how the first code sample works.
https://www.experts-exchange.com/questions/28297075/explain-this-code-and-static-values.html