I came through a pretty interesting question... what can be the class declaration for the following segment of code in c++..
int main(){
Point f(3,4); //class Point
f(4);
}
the object declaration can be done by declaring a constructor f(int, int). But how can we use a constructor declaration to assign values to an object?? Even if define another constructor f(int), this will not work... as constructors are called only during object declaration. Please suggest a way to do this....