Roundtable Discussion on “Object-Oriented Programming Techniques: Copy Constructors, Virtual Destructors, and Smart Pointers”
On June 5, a roundtable discussion was held for students of the Department of Mathematics and Computer Science at the Faculty of Natural Sciences of Vanadzor State University. The topic of the event was “Object-Oriented Programming Techniques: Copy Constructors, Virtual Destructors, and Smart Pointers.”
The session was led by Heghine Ohanyan, Head of the Chair of Mathematics and Informatics, Associate Professor, and Candidate of Technical Sciences.
The roundtable was designed for students seeking to deepen their understanding of memory management in the C++ programming language, particularly within the context of complex dynamic polymorphic hierarchies.
The discussion included not only in-depth theoretical explanations of the mentioned topics but also practical code examples. These examples illustrated common mistakes, such as memory leaks caused by improper use of destructors, as well as correct approaches for implementing these critical programming techniques.

