Dot ( . ) Operator
For use member function of the class with object we need a operator and this operator is dot (.) operator. We also need to call member function from one class to another class. For this, first we define an object of that class then use dot operator with object for calling member function.
Example :
Output :
Just observe this example carefully then you can understand that matter.
Written by “Shojib”
No comments:
Post a Comment