One define the the function inside the class declaration. It means instead for define outside the class as
void Class_name::Function_name(){}
declare as follow
class {
public:
void Function_name(){}
};
This will make functions inline.( depending on compilers decision whether to treat it as inline or not).
1 comment:
scope resolution operator is used to when the local variable is replacing the scope of global variable but u still want to use global variable.scope resolution operator is used to differentiate the scope of variable
Post a Comment