QUIZCPP Telegram 1418
🚫 Антипаттерн недели: Отсутствие виртуальности в деструкторах базовых классов

В C++, если деструктор базового класса не является виртуальным, объекты производных классов могут быть уничтожены неправильно, что может привести к утечке памяти.

✔️ Всегда делайте деструкторы виртуальными в полиморфных классах.

👩‍💻
@quizcpp



tgoop.com/quizcpp/1418
Create:
Last Update:

🚫 Антипаттерн недели: Отсутствие виртуальности в деструкторах базовых классов

В C++, если деструктор базового класса не является виртуальным, объекты производных классов могут быть уничтожены неправильно, что может привести к утечке памяти.

✔️ Всегда делайте деструкторы виртуальными в полиморфных классах.

👩‍💻
@quizcpp

BY С++ задачи и вопросы




Share with your friend now:
tgoop.com/quizcpp/1418

View MORE
Open in Telegram


Telegram News

Date: |

Over 33,000 people sent out over 1,000 doxxing messages in the group. Although the administrators tried to delete all of the messages, the posting speed was far too much for them to keep up. The SUCK Channel on Telegram, with a message saying some content has been removed by the police. Photo: Telegram screenshot. Telegram offers a powerful toolset that allows businesses to create and manage channels, groups, and bots to broadcast messages, engage in conversations, and offer reliable customer support via bots. Done! Now you’re the proud owner of a Telegram channel. The next step is to set up and customize your channel. You can invite up to 200 people from your contacts to join your channel as the next step. Select the users you want to add and click “Invite.” You can skip this step altogether.
from us


Telegram С++ задачи и вопросы
FROM American