Class Variable or Static Variable in Python (Hindi)

preview_player
Показать описание
Class Variable or Static Variable in Python



Check Out Our Other Playlists:

SUBSCRIBE to Learn Programming Language !

Learn more about subject:

________________________________________________

If you found this video valuable, give it a like.
If you know someone who needs to see it, share it.
If you have questions ask below in comment section.
Add it to a playlist if you want to watch it later.
________________________________________________

T A L K W I T H M E !
_______________________________________________

Make sure you LIKE, SUBSCRIBE, COMMENT, and REQUEST A VIDEO! :)
_______________________________________________
Рекомендации по теме
Комментарии
Автор

Hi!!!.. I'm watching your videos on python. Found very good are they. You have tried your best to make understand to all. this is good. There is a kind request, please make a small program individually and then apply these stuff there. it will very helpful for beginners.

kamlendrak
Автор

This is best Explanation for this topic. it's very helpful to me sir.👍👍👍

ronakjain
Автор

if we modify class variable in an instance it will have no effect on other instances of the class

exp: class a:
variable=0

obj = a()
obj1= a()

obj.variable="for obj"
print(obj.variable)
print(obj1.variable)

Output:

for obj
0



every instance of class will use value assigned by class in variable, modified value will be available only to that instance.

VinayThakur-yigj
Автор

@Geeky Shows 3:36 I can still access class variable inside instance method e.g
def show_model(self):
print(self.fp)

rahulshukla
Автор

15:50 You have presented it incorrectly. If you change Mobile.fp to "No" and then you are printing "Mobile.fp" three times, of course, it will print "No". What you should have done is printed RealMe.fp, Redmi.fp and Geek.fp. That was the correct demonstration of the concept you are trying to teach here.

sidddddddddddddd
Автор

class variable can be accessed in any function (class method or static method or instance method) by the help of class name

VinayThakur-yigj
Автор

Mjhe smjh ni aa rha, itne simple tareeke se smjhaya gya h fr b is chanel p likes ku ni h... Thoko thoko thoko re

harikrishanankurup
Автор

Brother if you make a data structures tutorials it will be very helpful to us

AlAmin-xyff
Автор

Data Science ke upar Module Banao na Geeky Shows Hindi Mai

TWINFLAME
Автор

So Static Variable is same as Class Variable?

ratkush
Автор

WITHOUT USING @CLASSMETHOD WE CAN ALSO USE THE CLASS VARIABLE THEN WHY WE SHOULD MENTION THIS DECORATOR

AnjaliSingh-zbyw
Автор

@classmethod kya hai same he rahega kya

suhasnalawade
Автор

Not at all a good explanation, it is not clear why classmethod is required

Commonman
Автор

Very Less People can watch your whole Playlist

gopiazad