confused why I'm getting this error, I thought I had every virtual function in my ABC "shape.cpp" defined in triangle. I'm thinking it has something to do with my constructor in triangle (how I call shape's constructor?) but I don't know how to go about testing?
edit: forgot context, I'm trying to derive a bunch of child classes from an abstract base class 'shape'. Then I'm going to create a class called picture that uses a link list to store a list of shapes. I've no compile errors that refer to picture being the problem when I run my main - it's just my triangle.
edit2: /tmp/ccI1iTRS.o: In function `Triangle::Triangle(double, double, double)':
shapemain.cpp:(.text._ZN8TriangleC2Eddd[_ZN8TriangleC5Eddd]+0x48): undefined reference to `vtable for Triangle'
collect2: error: ld returned 1 exit status
Oh... I thought I should have left it undefined so that the ABC's destructor is called instead and automatically destroys all derived instances of that class. Now that I have a {} instead of a ; there, will I have to destruct all derived instances of the shape class individually? I won't get to destroy them all at once using shape's destructor, right?