class ABC{
public :
int a;
public :
int getData(){
return a;
}
}
void main()
{
ABC abc;
cout<< abc.a; //1
cout<<abc.getData();//2
}
Now if I'm accessing the variable "a"
in which case compiler take less time to access 'a'
.
I guess first case but not sure.