Tag: oop
All the articles with the tag "oop".
-
Rule of Three, Five and Zero in C++: Resource Management
Master modern C++ resource management. Understand the historical evolution from the Rule of Three to move semantics in the Rule of Five, and why the Rule of Zero is the gold standard.
-
C++ Shallow Copy vs Deep Copy Explained
Understand the vital difference between shallow copy and deep copy in C++. Learn how pointer copying causes double deletion and how to implement custom deep copying.
-
C++ Copy Constructor: How Object Copying Works
Master the C++ copy constructor. Understand copy initialization, why parameters require const references, the difference from operator=, and resource ownership.
-
Composition vs Inheritance in C++: Object Design Trade-Offs
Explore the architectural trade-offs between composition and inheritance in C++. Learn when to use 'has-a' vs 'is-a', coupling dynamics, and reusability.