I have a question , if the object created in a way like Point p3; an then next line Point p3=p1; So will it call the copy constructor twice and print the cout stmts?? 🤔🤔
i'm getting this error when i try to compile the code in your tutorial error: calling a private constructor of class 'Point' Point p1; may i know what i'll need to change?
Really very simple to learn every concept from you. Thanks a lot for helping students like me sir😌😌😌😌
Glad to hear that
How amazing you are !! ,I loved learning c++ immensely , due to your videos
Happy to hear that!
can u pls provide notes
along with this it will realy going to helap a lot
btw thank u so much love your teaching way
Sure.. plz check my channels about page.
There you will get link to github.
Brother my only doubt is how can you teach so magnificently??
Hi....by default compiler provide all three types of constructor
Yes..
@@CppNuts can u pls make an video in this
Simple and Nice
explanation
public & rhs in this line where we declares the rhs?
I have a question , if the object created in a way like Point p3; an then next line Point p3=p1;
So will it call the copy constructor twice and print the cout stmts?? 🤔🤔
you cannot create two object with same name in one scope
CppNuts Thank you Rupesh👍
Point &rhs is actually reference object in copy constructor right sir?????
Yes!!
Love your videos! Thanks a lot!
Thanks man..
Y can't we print x and y values in the copy constructed it's self
Sen nasıl bir kralsın eyvallah aslan parçası
Çok teşekkür ederim, büyük bir zevk
Here copy constructor is deep copy??
If you are asking this meaning you are not clear about shallow and deep copy, please watch my video on shallow and deep copy constructors.
i'm getting this error when i try to compile the code in your tutorial
error: calling a private constructor of class 'Point'
Point p1;
may i know what i'll need to change?
Paste your code here.
can you explain shallow copy and deep copy?
I think i have a video for that..
What is the real time example of copy constructor
You always need copy constructor if you want to do deep copy, please watch my video on shallow and deep copy constructors.
HOW TO CALL THE DEFAULT CONSTRUCTOR???
If u don't define constructor it will call default.