Question

New to C++ and have some questions. Can only instances of the exception class and classes...

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?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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

Add a comment
Know the answer?
Add Answer to:
New to C++ and have some questions. Can only instances of the exception class and classes...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT