How can we restrict a function to throw certain exceptions?


a. Defining multiple try and catch block inside a function

b. Defining generic function within try block

c. Defining function with throw clause

d. It is not possible in CPP to restrict a function









ANSWER: Defining function with throw clause


No comments:

Post a Comment

The advantages of Outsourcing Web Development Services

In the present digital world, acquiring a solid web presence is essential for companies to flourish. A well designed site is much much more ...