We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e29c1a commit 5fd0061Copy full SHA for 5fd0061
docs/cpp/destructors-cpp.md
@@ -19,13 +19,13 @@ Consider the following declaration of a `String` class:
19
class String
20
{
21
public:
22
- String(const char* ch); // Declare constructor
23
- ~String() noexcept; // and destructor.
+ String(const char* ch); // Declare the constructor
+ ~String(); // Declare the destructor
24
private:
25
char* _text{nullptr};
26
};
27
28
-// Define the constructor.
+// Define the constructor
29
String::String(const char* ch)
30
31
size_t sizeOfText = strlen(ch) + 1; // +1 to account for trailing NULL
0 commit comments