Advance Python Series- Public Private And Protected Access Modifiers

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 43

  • @LuisAlvarez-yz2tv
    @LuisAlvarez-yz2tv Рік тому +1

    I love how passionate you are about this

  • @ArjunBkool
    @ArjunBkool 3 роки тому +7

    with such nice behavior, python as a person would be everybody's fav :)

  • @wellwhatdoyakno6251
    @wellwhatdoyakno6251 2 роки тому

    love you krish! man of God! GOD BLESS YOU AND YOUR LEGACY

  • @BHANUPRAKASH48
    @BHANUPRAKASH48 Рік тому

    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.

  • @RenormalizedAdvait
    @RenormalizedAdvait 3 роки тому +3

    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.

  • @jagadeeshwaranramasubraman2447
    @jagadeeshwaranramasubraman2447 4 роки тому +4

    Awesome content
    Thank you Sir

  • @moyegbemiphilipajinomisang7550
    @moyegbemiphilipajinomisang7550 2 роки тому

    You are a very good teacher

  • @AlAmin-xy5ff
    @AlAmin-xy5ff 4 роки тому +2

    Thanks for your good tutorials.

  • @itsme1674
    @itsme1674 2 роки тому

    Amazing explanation, Thanks

  • @ameermohamedr4982
    @ameermohamedr4982 4 роки тому +2

    Thank you Krish

  • @MrSmarthunky
    @MrSmarthunky 4 роки тому +2

    Most wanted video.

  • @nandhakishore8950
    @nandhakishore8950 4 роки тому +2

    Sir this playlist is very useful for revising topics easily sir.

  • @nethravathi2845
    @nethravathi2845 2 роки тому

    very well explained 👏

  • @amitchawla9579
    @amitchawla9579 4 роки тому +2

    Krish, what tools are you using for this new setup? Which recording software and writing device. please share that?

  • @diwakarbhatt04
    @diwakarbhatt04 4 роки тому +3

    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.

    • @shubhamrawat3366
      @shubhamrawat3366 4 роки тому +1

      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 😎.

    • @jawadaslam8537
      @jawadaslam8537 3 роки тому

      Python dont restrict them ..we can use name mangling concept to access private variables ...And i also want to know the answer of WHY ..

  • @manojkumarbarik1443
    @manojkumarbarik1443 3 роки тому +1

    How can we access the PROTECTED fields and methods from child class located in a different
    package

  • @jayedakhtar8947
    @jayedakhtar8947 3 роки тому +2

    Is your machine learning playlist enough to apply for a job?

  • @lngwnd1
    @lngwnd1 3 роки тому +2

    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.

  • @pradheepm1371
    @pradheepm1371 4 роки тому +3

    Krish sir after completing the oops concept do one project usings oops concept

    • @krishnaik06
      @krishnaik06  4 роки тому +6

      Yes I am coming up with flask framework series too

    • @pradheepm1371
      @pradheepm1371 4 роки тому +1

      @@krishnaik06 thank you sir

  • @santakdas7457
    @santakdas7457 4 роки тому +2

    When will you continue the julia programing language series?

  • @GagandeepSingh-qs2vh
    @GagandeepSingh-qs2vh 4 роки тому +5

    I hope you would call it 'name mangling' next time instead of calling it private.

  • @MuhammadShahzad-dx5je
    @MuhammadShahzad-dx5je 3 роки тому

    #awesome. Please, add it in your python playlist where you have explained OPPs... It's not there, please, update it for new subscribers...

  • @sravanthkurmala1042
    @sravanthkurmala1042 2 роки тому

    why am i able to overwrite even in protected (without the use of sub class)?

  • @Karthik-s4y5f
    @Karthik-s4y5f Рік тому

    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

  • @shreyanshkhare2438
    @shreyanshkhare2438 2 роки тому

    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..?

  • @theoutlet9300
    @theoutlet9300 3 роки тому +5

    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?

    • @krishnaik06
      @krishnaik06  3 роки тому +3

      Yes

    • @rheumaticharm9551
      @rheumaticharm9551 3 роки тому

      @@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.

  • @akshay.jadhav
    @akshay.jadhav 2 роки тому

    nicely explained.
    Sir are you working in any IT company??

  • @jawadaslam8537
    @jawadaslam8537 3 роки тому

    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

  • @bibekgupta4134
    @bibekgupta4134 4 роки тому

    I think it is name mangling instead calling Private access modifier's.

  • @raunakak2289
    @raunakak2289 4 роки тому +1

    I know python ml and R and I v cirtificate and I finding job

    • @abhi9029
      @abhi9029 3 роки тому

      did you get the job?

  • @adi_yerabati
    @adi_yerabati 3 роки тому

    what car has 5 windows

    • @nethravathi2845
      @nethravathi2845 2 роки тому

      its upto you how many windows you want you can keep

  • @sharathchandra1305
    @sharathchandra1305 3 роки тому

    Unclear when compared to other videos. Probably you need to remake this video by tweaking the example and explanation. Just saying. :)

  • @louerleseigneur4532
    @louerleseigneur4532 3 роки тому

    Thanks Krish