Skip to content

Typo fix: "destructors" instead of "constructors" #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/cpp/class-member-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ translation.priority.ht:
- "zh-tw"
---
# Class Member Overview
A class or struct consists of its members. The work that a class does is performed by its member functions. The state that it maintains is stored in its data members. Initialization of members is done by constructors, and cleanup work such as freeing of memory and releasing of resources is done by constructors. In C++11 and later, data members can (and usually should) be initialized at the point of declaration.
A class or struct consists of its members. The work that a class does is performed by its member functions. The state that it maintains is stored in its data members. Initialization of members is done by constructors, and cleanup work such as freeing of memory and releasing of resources is done by destructors. In C++11 and later, data members can (and usually should) be initialized at the point of declaration.

## Kinds of class members
The full list of member categories is as follows:
Expand Down Expand Up @@ -186,4 +186,4 @@ int CanInit2::j = i;
> The class name, `CanInit2`, must precede `i` to specify that the `i` being defined is a member of class `CanInit2`.

## See Also
[Classes and Structs](../cpp/classes-and-structs-cpp.md)
[Classes and Structs](../cpp/classes-and-structs-cpp.md)