I have changed to the following:
"class_definitions.h"
1 2 3 4 5 6 7 8 9 10
|
class ellipse : public closed_curve
{
public:
ellipse(double a_holder, double b_holder, double x_holder, double y_holder); // constructor
double major_radius, minor_radius;
coordinate center;
coordinate place(double);
};
|
"class_methods.cpp"
1 2 3
|
ellipse::ellipse(double a, double b, double x, double y) : major_radius(a), minor_radius(b), center(x,y)
{
}
|
I'm still getting the same error, though:
Undefined symbols:
"typeinfo for closed_curve", referenced from:
typeinfo for ellipsein class_methods.o
typeinfo for rectanglein class_methods.o
"vtable for closed_curve", referenced from:
__ZTV12closed_curve$non_lazy_ptr in class_methods.o
"closed_curve::place(double)", referenced from:
vtable for rectanglein class_methods.o
vtable for squarein class_methods.o
ld: symbol(s) not found
collect2: ld returned 1 exit status