Difference between try-catch syntax for function
The First Syntax: The scope of the try block starts after the Member Initialization list has been completed, So any exception thrown during Member Initialization will not be caught by this try-catch block. The second syntax: It ensures that if an exception gets thrown during Member Initialization list then you are able to catch the … Read more