Nice example. Thank you. So, in the final code, let's say the Son class has a Daughter that also inherits - GrandDaughter class... While keeping the GrandSon class able to still have access to propValue, how do you implement the new GrandDaughter class (sibling to GrandSon) so she can NOT access propValue? So access control is, Father can access, Son can access, GrandSon can access, GrandDaughter can NOT access.
Good work: Does the private member of the Base class is sharing memory for the child object or child object just has the permission to access from the Base class? In the case of public and protected, Do the protected and public members of the Base class share memories for the child object?
Atlast, fatherproperty is public.Can i create object Fatherproperty in main() and access the property? so even if it is protected to son, i can create object of faterproperty class. Right?
Dude i still cannot understand it, no fucking body cannot access the father property if the code is written to access only the son property. What is the point if only the programmer decideds??? Unless there is something secure in memory I don't really understand what is the fucking point of using them.
@@Cognitive-Programmer nah dude you explained it perfectly i know how to use them i simply don't know why we are using it, other than the fact that its makea the code more clean and structured I don't see any other point, my teachers always say its for security but i cannot understand what security the user is running the compiled code he cannot make changes, are we talking about buffer overflow or some shit i cannot understand thats why i am asking.
Hello I believe there meaning of security means preventing someone from driving your class and changing it accidentally. There is no runtime security associated with our.. No buffer overflows security nothing like it.
👉 Follow my Learnings and Journey beyond software development in my other TH-cam channel 🎦 @ bit.ly/CruisingDAKSH
I am a student from NYU. Your 6-minute video is much more clear than my professor's 75-minute lecture. Thanks so much!
Thank you so much for your kind words.. Really appreciate it 🙏
By far the best explanation about C++ classes I've seen
Thanks a lot for your comment
final exam in 12 hours and I mayyyy have been skipping lectures but this totally saved me. Great video, made it so simple
Thank you glad to know that it helped
lmao same
This was by far the best tutorial i have seen! You talked about any kind of case so that i dont need to ask something. Thank you very much!
Thanks for your comment 🙏
This is EXACTLY what I needed! Love!
Best explanation of inheritence i've seen so far! Thank you!
Thanks a lot for your comment 🙏🙏🙏
best explanation on the whole youtube
Thanks a lot for your comment 🙏
Thnaks sir, literally i have cleared my protected concept in just 5 minutes through parallel practice on my compiler from your video.
Thanks you so much for your comment 🙏🙏🙏
u are the best Indian programmer
You explain so nicely prof, I really like your humble way of speaking.
Thanks for your comment 🙏
Really best ever explanation of these three confusing terms. Gonna share it AMAP👍
Thanks for your comment 🙏🙏🙏
Thank you sir! Great example, really helped me understand with your amazing explanation!
Thanks for your comment 🙏🙏🙏
Thanks for the great explanation! I am sure I'll never forget it now!!
Thanks a lot for your comment 🙏🙏🙏
wow your video was so simple and easy to understand i was so confused all the time
Thanks for your comment 🙏🙏🙏
VERY GOOD EXPLANATION. THANK YOU SIR
Thanks for your comment 🙏
This property example is very understandable. Thanks 👍
Thanks for your comment 🙏🙏🙏
very nice presentation and very creative of u using the examples like father and son.
Thank you so much for your comment 🙏
Thank you so much sir ,for your best explanation of these confusing terms
Thanks a lot for taking time out to write this comment. Thanks a lot 🙏🙏🙏
Best explanation I ever seen
Thank you so much
Brilliant example, nice explanation
Thanks for your comment 🙏🙏🙏
Fantastic explain with nice story
Thanks for your comment 🙏
the explanation is clear and easy
TThanks for your comment 🙏🙏🙏
@@Cognitive-Programmer you are welcome
Very clear explanation, thanks a lot.
Thanks a lot for your comment 🙏🙏🙏
Thank you so much, finally understood this!
Thanks for your comment
nice explanation perfect example makes easy to understand tnx sir
Thank you so much for your comment
Thanks a lot for such good and detailed explanation! ❤
Thank you so much for your comment 🙏
Nice example. Thank you. So, in the final code, let's say the Son class has a Daughter that also inherits - GrandDaughter class... While keeping the GrandSon class able to still have access to propValue, how do you implement the new GrandDaughter class (sibling to GrandSon) so she can NOT access propValue? So access control is, Father can access, Son can access, GrandSon can access, GrandDaughter can NOT access.
superb explanation sir.
🙏 thank you
Thank you! It saves my life
Thank you 🙏
thanks sir its very helpful for me to completing my assignment
thanks alot
Thanks for your comment 👍
Superb Example!! :)
This was a great explanation, thanks! Quickly helped me clear up some confusion with derived class definitions😄
Thanks a lot for the comment 🙏
Best video on inheritance sir🙏😊
Thank you so much for your comment 🙏
beautiful explanation
Thanks for your comment 🙏
Awesome explanation! :)
Thanks for your comment 🙏
Amazing video!
Thank you so much for your comment
Loved the example ..
Thanks for your comment 🙏🙏🙏
Best explanation
Thanks a lot for your comment 🙏🙏🙏
Best example Ty sir
Thanks you so much for your comment 🙏🙏🙏
good explanation sir thanku so much for ur time
Thanks for your comment
this video needs more views
🙏🙏🙏
Thank you sir💗💗
Thanks for your comment 🙏🙏🙏
Good work: Does the private member of the Base class is sharing memory for the child object or child object just has the permission to access from the Base class?
In the case of public and protected, Do the protected and public members of the Base class share memories for the child object?
best explanation
Thank you 🙏
Great video
Thanks for your comment 🙏
Thank you very much
Thanks for your comment 🙏
Atlast, fatherproperty is public.Can i create object Fatherproperty in main() and access the property? so even if it is protected to son, i can create object of faterproperty class. Right?
nice sirji
Thanks for your comment 🙏🙏🙏
Perfect!
Thanks for your comment 🙏🙏🙏
Very clever explntn
Thanks 🙏
really awesome
Thank you 🙏
If i have a private value, can i access it via pointers still?
thank you so much
Thanks a lot for your comment 🙏🙏🙏
Sir super sir
Thank you so much for your comment 🙏🙏🙏
well explain
So private, only class can access it
Protected only inherited classes can access it
Public everyone can access it.
yes, you're right
Thanks
thanks
Thanks for your comment 🙏
Tq sir
Thanks for your comment 🙏
👍
🙏🙏🙏
GOODSHIT!
awsum
Thanks for your comment 🙏
Just wow..
Thanks for your comment 🙏🙏🙏
🙏🙏
Thanks for your comment 🙏
@@Cognitive-Programmer welcome sir
Dude i still cannot understand it, no fucking body cannot access the father property if the code is written to access only the son property. What is the point if only the programmer decideds??? Unless there is something secure in memory I don't really understand what is the fucking point of using them.
Hello
Thanks for your comment. I have just used a metaphor to explain the concept.
I am sorry if I couldn’t manage to explain it properly 🙏
@@Cognitive-Programmer nah dude you explained it perfectly i know how to use them i simply don't know why we are using it, other than the fact that its makea the code more clean and structured I don't see any other point, my teachers always say its for security but i cannot understand what security the user is running the compiled code he cannot make changes, are we talking about buffer overflow or some shit i cannot understand thats why i am asking.
Hello
I believe there meaning of security means preventing someone from driving your class and changing it accidentally.
There is no runtime security associated with our.. No buffer overflows security nothing like it.
The way you explained 🫶👏
Thank you 🙏