I\'ve worked with linked lists before extensively in Java, but I\'m very new to C++. I was using this node class that was given to me in a project just fine
Because this in C++
int main (..) { MyClass myObject; // or MyClass * myObjectPointer = new MyClass(); .. }
is equivalent to this in Java
public static void main (..) { MyClass myObjectReference = new MyClass(); }
where both of them create a new object of MyClass using the default constructor.
MyClass