Class Time{
int hour, min, sec;
Time(){};
Time(int h,int m, int s){
hour = h;
min = m;
sec = s;
}
void printTime(){
cout<<hr<<”:”<<min<<”:”<<sec;
}
}
I just want to know what is the size of objects in this class ?
Class Time{
int hour, min, sec;
Time(){};
Time(int h,int m, int s){
hour = h;
min = m;
sec = s;
}
void printTime(){
cout<<hr<<”:”<<min<<”:”<<sec;
}
}
I just want to know what is the size of objects in this class ?