I (beginner) am trying to program a simple calculator that accepts two numbers (float) and can add, subtract, multiply and divide.

I want to realise this “project” using at least 3 classes. According to my design these classes are:

Class Input (reads inputs from the user. the inputs are numbers and operations “+”, “-“, “*” and “/”)

Class Operation (gets the entered data from the input class and accomplishs the calculation)

Class Display (gets the results from the Class Operation and displays on the screen).

The question is how can I implement the transfer of messages say from class Input to class Operation or to class Display?

I highly appreciate if I get a sample code for such class interactions.

Thanks in advance

Praul