0 9

Object Oriented Programming05 marksType conversion

Write a program to convert floating point value to object of distance class with data members feet and inch.

Write a program to convert floating point value to object of distance class with data members feet and inch. [5]

This problem uses a conversion constructor (or single-argument constructor) to convert a floating point value (representing total inches) into a Distance object with feet and inches data members. Note: Reference notes were not available for this topic; the answer is based on standard C++ type con...

Up nextHow late binding differs from early binding? How can you achieve dynamic polymorphism? Exp