THANKS, I DO HAVE PIECES OF CODES, HERE

Code:

//HEADER FILE
#include<iostream>
using namespace std;
class rational
{
//friend print rational(rational & m);
public:
rational();
rational(int,int);
~rational();
int getnumerator(void);
int getdenominator(void);
void setnumerator(int);
void setdenominator(int);
private:
int denominator;
int numerator;
};
rational::rational()
{
numerator=0;
denominator=0;
}
rational::rational(int num,int dem)
{
numerator=num;
denominator=dem;
}
rational::~rational()
{
cout<<"we are in the destructor function"<<endl;
}
int rational::getnumerator(void)
{
return numerator;
}
int rational::getdenominator(void)
{
return denominator;
}
void rational::setnumerator(int new_numerator)
{
numerator=new_numerator;
}
void rational::setdenominator(int new_denominator)
{
denominator=new_denominator;
}
// .CPP FILE MAIN
#include<iostream>
using namespace std;
#include"rat.h"
int main()
{
rational object3,object2,object1;
object3.setnumerator(54);
object2.setdenominator(89);
object1.setnumerator(5);
cout<<object1.getnumerator<<endl;
cout<<object2.getdenominator<<endl;
cout<<object3.getnumerator<<endl;
return 0;
}
THANKS GRUMPY.