prog.cpp: In member function ‘Line Shape::GetTangent()’:
prog.cpp:10:5: error: return type ‘class Line’ is incomplete
{
^
prog.cpp:11:22: error: invalid use of incomplete type ‘class Line’
return new Line();
^
prog.cpp:4:7: error: forward declaration of ‘class Line’
class Line;
^
prog.cpp: In function ‘int main()’:
prog.cpp:23:27: error: conversion from ‘void’ to non-scalar type ‘Line’ requested
Line line = s.GetTangent();
^