Question: Write a Length class that has two data members feet and inches. It also includes - No-argument constructor - A parameterized constructor - ShowLength() -
Write a Length class that has two data members feet and inches. It also includes - No-argument constructor - A parameterized constructor - ShowLength() - GetLength() Remember that there are 12 inches in a foot. Define following overloaded operators for this class - (>, <, <=, ==) compares two distances and returns a Boolean value - + operator that adds two distances - ++ (prefix) increments length by 1 inch - -- (postfix) decrements length by 1 inch
in C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
