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
Why do we use oop?
What are the three main types of variables?
What is pure oop?
What is inheritance in simple words?
What is polymorphism give a real life example?
How do you define social class?
What language is oop?
Can we create object of abstract class?
What is super in oop?
What is the difference between a constructor and a destructor?
What is abstract class in oops?
What is overriding vs overloading?
What is polymorphism what is it for and how is it used?
Why do we need polymorphism in c#?
How to hide the base class functionality in Inheritance?