Programming Interview: functions C++ generates automatically (constructor, copy, assignment)

preview_player
Показать описание
This video lecture is produced by S. Saurabh. He is B.Tech from IIT and MS from USA.

What are the functions that c++ generates automatically and calls.
What are default constructor, copy constructor, assignment operator, and default destructor.
What is the problem in defining some special constructor.

To prepare for programming Interview Questions on Binary Trees

To study programming Interview questions on Stack, Queues, Arrays visit

To watch all Programming Interview Questions visit

To learn about Pointers in C visit

To learn C programming from IITian S.Saurabh visit

"difference between copy constructor assignment operator c++"
"difference copy constructor assignment operator c++"
"copy constructor assignment operator c++ example"
"assignment operator example"
"copy constructor swap"
"copy constructor vs assignment operator"
"private copy constructor assignment operator"
"difference between copy constructor and assignment operator"
Рекомендации по теме
Комментарии
Автор

Thanks bluebeardic, yes you are correct, all those obj are pointers to class A, I have added annotations to make the correction in that video, thanks once again

saurabhschool
Автор

As I remember c++ doesn't create a default constructor if a copy constructor is created explicitly.

dhhsncnd