How is exception handling carried out in c++?

Answer Posted / rajesh manem

Using try and Catch blocks the exceptions are handling C++.
We can write our own defined class and we can handle the
exception.Using throw it will throw the exception t the
calling method/class. The throws keyword is used to tell
this method may throw these type of exceptions.We can throw
any exception what ever you like including class objects.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean when someone says I oop?

822


What is purpose of inheritance?

864


What is the oops and benefits of oops programming?

750


How long to learn object oriented programming?

824


What are constructors in oop?

809


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1754


Which type does string inherit from?

855


How do you use inheritance in unity?

814


Is react oop?

830


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6713


Which is better struts or spring?

818


What is inheritance and how many types of inheritance?

832


How is class defined?

847


Can static class have constructor?

792


Why do we use encapsulation in oops?

763