Hi,,
I'm trying to get the hang of basic OOP, so I made this pointless code as a startinbg point:
#include <stdio.h>
class rectangle
{
public:
rectangle(void);
~rectangle(void);
...more function declarations
};
void main()
{
rectangle rocket;
return 0;
}
When I try to compile it, it tells me that there are undefined references to rectangle::rectangle and rectangle::~rectangle. If I remove the constructor and destructor or include some code, it doesn't make a fuss. I know they're not necessary, but why is it doing this?