Тёмный

Constructors, Destructors and Object Lifetime (Contd.) (Lecture 24) 

Programming in C plus plus
Подписаться 10 тыс.
Просмотров 23 тыс.
50% 1

Опубликовано:

 

24 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@manmohankrishna2407
@manmohankrishna2407 5 лет назад
8:37 the program on the right should use in the deconstructor code "delete [] data_", and not "delete data_" just the way it was done on the program in the left to be able to delete the whole dynamically created array.
@hrushikeshtawde360
@hrushikeshtawde360 7 лет назад
Thank you so much sir!
@joseponce6250
@joseponce6250 2 года назад
thanks!!
@iloveuniverse143
@iloveuniverse143 5 лет назад
thank you NPTEL team
@AlexS-fv7ln
@AlexS-fv7ln 4 года назад
To invoke a destructor explicitly need to call s.~Stack(), but not Stack::~Stack(&s).
Далее
Multiple Inheritance (Contd.) (Lecture 51)
20:35
Просмотров 10 тыс.
Avaz Oxun - Turqi sovuq kal
14:50
Просмотров 262 тыс.
«По каверочку» х МУЗЛОФТ❤️
00:21
C++ object lifecycle 101: the essentials
9:28
Просмотров 1 тыс.
Inheirtnace Part I (Lecture 36)
24:32
Просмотров 28 тыс.
Closing Comments (Lecture 56)
31:27
Просмотров 13 тыс.
InheritancePart V (Lecture 40)
35:04
Просмотров 16 тыс.
Clean Code - Uncle Bob / Lesson 1
1:48:42
Просмотров 1,9 млн
Beginner's Guide to the Bash Terminal
1:14:37
Просмотров 2,3 млн