Okay, I am still trying to get used to C++ since I mostly write in Java. I am also new with the two constructor thing mentioned in detail below.
Here, I am investigating on writing a class with two constructor. That is, I have heard that you are allowed to write a class with a constructor and another constructor which is basically the same but has more parameters in it.
eg. First constructor might be add()
Second constructor might be add(int x, int y)
How will I go about getting both to work correctly depending on which to use? I know that constructors go into the .h file so I tried putting them on back to back lines. I tried searching online to see am I on the right track but there was not the result I was looking for.