Thank you for providing this python series, its very good learning. i have doubt while going through your vedio, cannot able to modify through child class, but i can able modify the private varibles from child class like this truck._Car__doors=7,truck._Car__doors. it didnt through any error.
Well, it is expected as python is an interpreted language. The access specifiers do not mean anything as sharing python libraries that are not compiled libraries imply sharing of source code that can be altered anyways.
Krish, I have a doubt that if we access and mutate all the variable which are private inside the class so does it make any sense why we use them in the python means we can easily change them.
I think it's just a warning message from the developer to the tester don't change the value. it's an important variables. But tester be like naah idc im gonna change that variable value and will look 😎.
Hey I was having a little trouble with that if statement and realized that instead of using the '&' operator it was best to use 'and' as the operator for the if statement. When I used '&' it worked for some use cases but not all... Hope this helps someone.
Sir but it is accepting overriding the variable in protected without creating subclass But I understood that the developer has to override the variables only in the subclasses when dealing with protected variables
okay...pllz make this clear to me.... As python won't restrict us from overriding the protected members through the base class (or we can say base class obj ) also..so overriding protected members through the inherited class (or inherited class obj) is just a convection to follow or what..?
cant get point of overriding the protected data memebers.....What is the difference between public and protected ....why protected data memebers can be modified outside the base class and child classes also
I love how passionate you are about this
with such nice behavior, python as a person would be everybody's fav :)
😢
love you krish! man of God! GOD BLESS YOU AND YOUR LEGACY
Thank you for providing this python series, its very good learning.
i have doubt while going through your vedio, cannot able to modify through child class, but i can able modify the private varibles from child class like this truck._Car__doors=7,truck._Car__doors. it didnt through any error.
Well, it is expected as python is an interpreted language. The access specifiers do not mean anything as sharing python libraries that are not compiled libraries imply sharing of source code that can be altered anyways.
Awesome content
Thank you Sir
You are a very good teacher
Thanks for your good tutorials.
Amazing explanation, Thanks
Thank you Krish
Most wanted video.
Sir this playlist is very useful for revising topics easily sir.
very well explained 👏
Krish, what tools are you using for this new setup? Which recording software and writing device. please share that?
instablaster
Krish, I have a doubt that if we access and mutate all the variable which are private inside the class so does it make any sense why we use them in the python means we can easily change them.
I think it's just a warning message from the developer to the tester don't change the value. it's an important variables. But tester be like naah idc im gonna change that variable value and will look 😎.
Python dont restrict them ..we can use name mangling concept to access private variables ...And i also want to know the answer of WHY ..
How can we access the PROTECTED fields and methods from child class located in a different
package
Is your machine learning playlist enough to apply for a job?
Hey I was having a little trouble with that if statement and realized that instead of using the '&' operator it was best to use 'and' as the operator for the if statement. When I used '&' it worked for some use cases but not all... Hope this helps someone.
Krish sir after completing the oops concept do one project usings oops concept
Yes I am coming up with flask framework series too
@@krishnaik06 thank you sir
When will you continue the julia programing language series?
I hope you would call it 'name mangling' next time instead of calling it private.
#awesome. Please, add it in your python playlist where you have explained OPPs... It's not there, please, update it for new subscribers...
why am i able to overwrite even in protected (without the use of sub class)?
Sir but it is accepting overriding the variable in protected without creating subclass
But I understood that the developer has to override the variables only in the subclasses when dealing with protected variables
okay...pllz make this clear to me....
As python won't restrict us from overriding the protected members through the base class (or we can say base class obj ) also..so overriding protected members through the inherited class (or inherited class obj) is just a convection to follow or what..?
So _ doesn't actually do anything, its just an indication to the developer that this must be overridden only by the child class. Am i right?
Yes
@@krishnaik06 so the same convention will be followed when defining functions as well?
But we have get attr and other functions and we do access them.
nicely explained.
Sir are you working in any IT company??
cant get point of overriding the protected data memebers.....What is the difference between public and protected ....why protected data memebers can be modified outside the base class and child classes also
I think it is name mangling instead calling Private access modifier's.
I know python ml and R and I v cirtificate and I finding job
did you get the job?
what car has 5 windows
its upto you how many windows you want you can keep
Unclear when compared to other videos. Probably you need to remake this video by tweaking the example and explanation. Just saying. :)
Thanks Krish