Is assignment operator inherited?
In C++, like other functions, assignment operator function is inherited in derived class.
For example, in the following program, base class assignment operator function can be accessed using the derived class object.
Output: base class assignment operator called
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
My Personal Notes arrow_drop_up
Please Login to comment...