test.h file
#ifndef TEST_H
#define TEST_H
public class Time {
public:
Time( int = 0, int = 0, int =0);
//set function
void settime(int, int, int);
void sethour(int);
void setmin(int);
void setsec(int);
//get function
int gethour() const;
int getmin() const;
int getsec() const;
void printmili() const;
void printsta() const;
private:
int hour;
int minute;
int second;
};
#endif
#define TEST_H
public class Time {
public:
Time( int = 0, int = 0, int =0);
//set function
void settime(int, int, int);
void sethour(int);
void setmin(int);
void setsec(int);
//get function
int gethour() const;
int getmin() const;
int getsec() const;
void printmili() const;
void printsta() const;
private:
int hour;
int minute;
int second;
};
#endif