Answer Posted / achal ubbott
Exception handling is not a must of programming. But it is
a cleaner way of getting signal if something goes wrong in
the code. Prior to exceptions people used return values of
functions for reporting errors to application using the
classes inside libraries. The application would call some
function(defined inside class) from within try bock. Now if
something goes wrong then the function(defined inside the
class) would throw an exception. This exception is then
handled by catch block in the application.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why polymorphism is used in oops?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is polymorphism programming?
Is html an oop?
What is the advantage of oop over procedural language?
to find out the minimum of two integer number of two different classes using friend function
What is encapsulation process?
Why it is called runtime polymorphism?
Can abstract class have normal methods?
Who invented oop?
How to call a non virtual function in the derived class by using base class pointer
What is meant by oops concept?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is byval and byref? What are differences between them?