Need Assistance?

support@tutorialshub.in

Object-Oriented Programming (OOP)

Rule of Three / Five / Zero

ADVERTISEMENT
C++ Free Lesson
5 min read
ADVERTISEMENT

Rule of Zero: Use std::string, std::vector, and std::unique_ptr for your class fields so you don't have to write custom destructors, copy constructors, or move assignment operators at all!

ADVERTISEMENT
Hi, I'm Tuby! Here to help you