I have a very small question regarding calling a class function.
So I have this class which has 2 private values of an int x and double y.
I have an overload constructor, when I make an object with no parameters passed, the default constructor will place default values into x and y.
If I make an object with 2 values passed in as parameters, the second overload constructor will take the 2 values passed in and place them into the corresponding x and y variable.
MY PROBLEM:
I am dealing with binary files, so I create 2 objects, one of them has no parameters passed in, the other has 2 parameters passed in. When I call my write function, to write the values of the object into the binary file, I have no problem with the object that has 2 parameters passed in, but when it reaches the object with no parameters passed in, it says : expression must have a class type