C#C
C#16mo ago
Merineth

✅ Addition with integers and floating point numbers

namespace Calculator.Model
{
    // The class for Addition "+".
    public class Addition
    {
        public static int Add(int number1, int number2)
        {

        }
    }
}


If i were to create this method, and someone would use a floating point number instead of an int. Would this method break? And if so, is there a way around this?
Was this page helpful?