R
Rahul
Hi Everyone,
I had this doubt for quite some while, does defining a member
function within the class declaration makes it inline by default?
Would the compiler attempt to inline all calls to such member
functions?
class sample
{
public: void print()
{
cout<<"sample:rint function invoked";
}
};
int main()
{
sample obj;
obj.print();
return(0);
}
Thanks in advance!!!
I had this doubt for quite some while, does defining a member
function within the class declaration makes it inline by default?
Would the compiler attempt to inline all calls to such member
functions?
class sample
{
public: void print()
{
cout<<"sample:rint function invoked";
}
};
int main()
{
sample obj;
obj.print();
return(0);
}
Thanks in advance!!!