CPP Class

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2020 Jun 21 9:11
Editor
Edited
Edited
2023 Apr 25 17:22

Struct + member Function

With objects of a class, the default assignment operator does not make the two objects the same object, it only copies values of member variables from one object to another object.
We should use
CPP Reference Type
to use same object
If a class has a data member that points to dynamic memory
  • Destructor
  • Copy Constructor
  • Member assignment (=) operator
    • can be assign same
    • remove original data
    • Returns reference for chaining
CPP Class Features
 
 
 
 

Create Class Object(Instance)

 
 

Recommendations