We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Classes
- Inherited Code
- Discussions
Inherited Code
Inherited Code
Sort by
recency
|
212 Discussions
|
Please Login in order to post a comment
What I've learned: 1. In try-catch structure, throw passes a value to the catch section.
Class(arg) also can create object of the class "Class" called "arg"?? I thought I could use a parameterized constructor to get the letter length and override what() method to print it out. I'm still wandering how's it possible for my exception class to accept the letter number "n".
"exception" header imports "exception" base class. We can define our own exception class ourselves.