CPP inheritance

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Apr 25 18:47
Editor
Edited
Edited
2023 Apr 25 19:0
Refs
can’t use inherited private member not even member functions
can only be accessed by name in member functions of the class they’re defined in
 
 

Protected

can be accessed by derived class
 

Redifining

same parameter list so not overloading
 
 
Constructor, Destructor, Copy constructor and assignment operator is not inherited but can be used
Destructor calling order is from derived class
opposite of how constructors are called
 
 
 
 
 

Recommendations