Shallow Copy and Deep Copy | Programming in C++ | Part 51

preview_player
Показать описание
In this video, we'll cover Shallow Copy (Compiler Generated Copy Ctor)
and Deep Copy (Copy Assignment Operator)
When you create a sample class and then instantiate it with some objects s1 and s2.
You can also copy the objects to create independent objects.
The copy is called shallow copy because it’s done by the compiler.
But not with the case of pointers.

Plugins🔌
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

SUBSCRIBE🔔
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Relevancy dies in a heartbeat, and I would love to sustain this channel in the long run. Every subscriber counts and it really means the world if you were one of them. So please SUBSCRIBE to my CHANNEL.

Most Engrossing Videos🎬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Gear⚙️
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Laptop: HP Spectre 13
Microphone: PC Mic

Mentions👥
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Рекомендации по теме
Комментарии
Автор

dude literally my friend... I can't understand anything from my lecturer xDD Thank you so much for this... I did it!

blz_kanazaki
Автор

Damn...a student destructor, sounds scary

kennykenken
Автор

Thank you so much! This helped me complete my assignment. You explained this better than my professor, haha.

SongBiird
Автор

Please tell me whether the agePtr to be deleted or not.? The same program gives the invalid free error when we are trying to delete the agePtr

YT-Leo
Автор

You are a greatman this subject is so important but mostly people didnt learn this subject Thank you sir

mert
Автор

I believe you should make videos on iteration!

jerrodestell
Автор

bro you are speaking really fast towards the second half there

superrspace
Автор

What kind of "programming, but everytime i talk it goes twice as fast" video is this.

tankyg