diff --git a/lectures/04_classes_II/README.md b/lectures/04_classes_II/README.md index 5bc1077..2ddc867 100644 --- a/lectures/04_classes_II/README.md +++ b/lectures/04_classes_II/README.md @@ -80,6 +80,12 @@ will sort Date objects into chronological order. - Copy constructors get called when you create a new object by copying an existing object using the assignment operator (=), or when you pass an object by value to a function. +### Copy Constructor Syntax + +```cpp +ClassName(const ClassName& other); +``` + ### Copy Constructor Example ```cpp