I am doing a program where Im using inheritance. I am having problems with the base class. I have three files pointtype.h, pointtype.cpp, main.cpp
This is the error I receive:
/usr/bin/ld: Undefined symbols:
pointType::setcoordinates(double, double)
pointType::printcoordinates()
pointType::returnx()
pointType::returny()
collect2: ld returned 1 exit status
#include "pointType.h"
#include <iostream>
using namespace std;
int main(){
pointType point;
double a;
double b;
cout<<"What is the x coordinate?";
cin>>a;
cout<<"What is the y coordinate?";
cin>>b;
point.setcoordinates(a, b);
point.returnx();
point.returny();
point.printcoordinates();