#include "point.h"
#include <iostream>
usingnamespace std;
//INITIALIZES
Point::Point():xCOORD(0), yCOORD(0)
{
//default constructor
//does nothing
}
//Constructor acts as a mutator
//to get values
Point::Point(double new_x, double new_y)
{
xCOORD = new_x;
yCOORD = new_y;
}
//MUTATOR FUNCTIONS
void Point::SetX(double x)
{
xCOORD = x;
}
void Point::SetY(double y)
{
yCOORD = y;
}
//ACCESSOR FUNCTIONS
//This is how it is done
//In order to return a Private variable's value.
//In order to access a private variable's value.
double Point::GetX()
{
return xCOORD;
}
double Point::GetY()
{
return yCOORD;
}
Hi, so my question is I keep getting this error and it's been bugging me. I can't think of anyway to get around this. Any ideas what I'm doing wrong? Thank You.
The Error is: main.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall Line::Line(class Point,class Point)" (??0Line@@QAE@VPoint@@0@Z) referenced in function _main
Thank you for the reply that did the trick. I basically wasted 2hr thinking what I did wrong and in the end I didn't do anything wrong....gg hahaha but Thank you for the HELP! I appreciated it! :)