I am about to begin coding a program that multiplies 2 non-primitive data types. It needs to be able to multiply negatives, whole numbers, and fractions. I'm trying to think of the best method to do this. I read something that mentioned converting non-primitive data types to primitive but I'm not sure if that's the road I should be taking.
Any ideas would be very helpful.
Any ideas would be very helpful.