New to C++ and have some questions.
Can only instances of the exception class and classes that are derived from it be thrown as an exception?
In a map container, if the mapped value( the associated value) is const, then can that value be updated after it has been inserted into the container?
Must any member variables of a class that are references be initialized using the base class/member initialization list?
Can only instances of the exception class and classes that are derived from it be thrown as an exception?
Yes, if the class is derived from the exception classes than only it will behave like Exception class
In a map container, if the mapped value( the associated value) is const, then can that value be updated after it has been inserted into the container?
True, we can 't update it as the value is constant
Must any member variables of a class that are references be initialized using the base class/member initialization list?
No, it is not mandatory to use base class always
Note : If you like my answer please rate and help me it is very Imp for me
New to C++ and have some questions. Can only instances of the exception class and classes...