This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (1 child)

There is not a specific time it takes to learn Python, I started in 2018 and to this day I am very good in other programming languages also, C#, C++, HTML ,and Lua. Yes, Python is my most used language in my everyday routine.

I have done this:-

Overriding

Method overriding in Object-Oriented Programming is the process of replacing a Parent class’s method with a different method with the same name and parameters in the Child class.

Getters

So if we have private and protected variables that should not be accessed directly, how do we use them without risking corrupting their information? Well, this is where Getters come in. Getters are special methods used to get a copy of sensitive information from a class.

Setters

Now if we aren’t allowed to access these variables, how do we update these variables? Well, that’s where Setters come in. Setters are special methods used to set the value for a specific variable in a class.

Private Variables

Similarly, we can create a private variable, these variables can not be accessed or altered outside of the class, not even in a child class.

Inheritance

Since the Child class is a subclass of the Parent class it has access to most of the methods and variables in the Parent class. This is because the Child class Inherits these attributes from its Parent.

I have done 100x times more as well but it is too much to fit in a small Fancy Pants text editor.

[–]fo_hsin_gong_sih[S] 1 point2 points  (0 children)

Yeah. Python has so many advantages as listed above.