Skip to content
Open
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
2 changes: 2 additions & 0 deletions 19-object-oriented-programming/05_homework_03_answer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class D {
D(const A &a, const B &b, const C &c) : aa(a), bb(b), cc(c){
// By using & => we use same memory object hence faster and low memory
// By using const => we remember developers you shouldn't try to change this parameter
// also this allow the user to pass temperory objects and const objects.
// this allows to receive Rvalue and Lvalue not just Lvalue
}
};

Expand Down