rgb192
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
6'0"
5'10"
5'10"
5'8"
want an object oriented method to return inches
72
70
70
68
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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