fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Line;
  5.  
  6. class Shape
  7. {
  8. public:
  9. Line GetTangent();
  10. };
  11.  
  12. class Line : Shape
  13. {
  14.  
  15. };
  16.  
  17. Line Shape::GetTangent()
  18. {
  19. return Line();
  20. }
  21.  
  22. int main()
  23. {
  24.  
  25. Shape s;
  26. Line line = s.GetTangent();
  27.  
  28. // your code goes here
  29. return 0;
  30. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty