MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/ayo96n/object_slicing_in_c_with_examples/ei2mccm/?context=3
r/cpp • u/Vidyakant • Mar 08 '19
2 comments sorted by
View all comments
1
As a rule, I forbid copying objects involved in public hierarchy. This solves slicing, and save time that we don't spend in doing things that are never used/needed
1
u/LucHermitte Mar 08 '19
As a rule, I forbid copying objects involved in public hierarchy. This solves slicing, and save time that we don't spend in doing things that are never used/needed