“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”
The question asks “Which operator cannot be *inherited*,
I’ve never heard of operator *inheritance*.
Anyhow these are the operators that can’t be overloaded:
:: . ->* ?: ->
i think constructor
=
I think destructor(~)
new
all the operators in c++ are overloaded but ” = ” cannot be overlaoded
Assignment operator
:: scope resolution operator
assignment operator ” = “cannot be overloaded
The question asks “Which operator cannot be *inherited*,
I’ve never heard of operator *inheritance*.
Anyhow these are the operators that can’t be overloaded:
:: . ->* ?: ->
Well, I just referred to Stroustrup doc and found out this.
:: . ?: sizeof are the operators that cannot be overloaded.
operator sizeof
Correcting my previous comment:
operator= cannot be inherited
Leave an Answer/Comment