Classes and Objects in Python | Python Tutorial - Day #57

  Рет қаралды 365,607

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 1 400
@tatyavinchu69
@tatyavinchu69 10 ай бұрын
self ka matlab wo object jiske liye koi method call kia ja raha hai i.e [self parameter is an reference to the current instance of the class and is used to access variables that belong to the class]
@SaiGaneshPulijala
@SaiGaneshPulijala 5 ай бұрын
This will be good for vs users:- # A class is a blueprint or a template for creating objects, providing initial values for state (member variables or attributes), and implementations of behavior (member functions or methods). The user-defined objects are created using the class keyword. class info: name = "ganesh" age = 17 print(info()) #We cant print the matter inside the class like this or without bracket. #We can print the info present in the class like this:- print(info.name) print(info.age) # Creating an Object: # Object is the instance of the class used to access the properties of the class Now lets create an object of the class:- a = info() print(a.name) print(a.age) # changing the object:- b = info() b.name = 'Rohan' b.age = 18 print(b.name) print(b.age) # Self Parameter:- # The self parameter is a reference to the current instance of the class, and is used to access variables that belongs to the class. # It must be provided as the extra parameter inside the method definition. class person: name = "Enter your name" age = "Enter your age" def intro(self): print(f"My name is {self.name} iam {self.age} years old.") c = person() c.name = 'Ganesh' c.age = 17 d = person() d.name = 'Rohan' d.age = 18 c.intro() d.intro()
@ritvikvoleti
@ritvikvoleti Жыл бұрын
Self parameter is used to refer to the the current instance of the class or the object for which the method is called.
@vimlaadarsh1932
@vimlaadarsh1932 Жыл бұрын
who is asking you?
@akhileshchaurasia7966
@akhileshchaurasia7966 Жыл бұрын
@@vimlaadarsh1932 No time paas here in Harry sir class, other wise u know what ....
@radhesyambeats..7939
@radhesyambeats..7939 Жыл бұрын
the self parameter us a reference to the current instance of the class, and is used to access variable that belongs to the class it must be provided as the extra parameter inside the method definition
@bholegaming5195
@bholegaming5195 Жыл бұрын
self means - it's the current instance of the class and is used to access variables that belongs to that class. thanks for clearing my doubts
@WinzzPlayzz
@WinzzPlayzz 5 ай бұрын
Bro aapne ye emoji kese use Kiya custom wala?
@Funny_videos-h9
@Funny_videos-h9 Жыл бұрын
self parameter is used to refer to the current instance of class or object for which the method is called
@sumithivale4414
@sumithivale4414 Жыл бұрын
The meaning of self :- The self parameter is a reference to the current instance of the class, and is used to access variables that belongs to the class.
@rokckerzzzz6080
@rokckerzzzz6080 Жыл бұрын
Is it same like this keyword in JavaScript?
@Godfatherhemanth2369
@Godfatherhemanth2369 Жыл бұрын
@@rokckerzzzz6080 object oriented programming is same for all languages u just need basics of it
@shubhamacharya1513
@shubhamacharya1513 11 ай бұрын
Self is a reference to the current instance of the class and is use to access variable that belong to the particular class.
@KrishnaPaul-s4t
@KrishnaPaul-s4t Жыл бұрын
self matlab referring to the object for which that class method is being called. Thanks Harry Bhai, I tried lots of documents and videos to understand this self, but you have explained it in a best possible way.
@mariamhasan3733
@mariamhasan3733 Жыл бұрын
Day #57 done. The self parameter in Python classes refers to the instance of the class being created, allowing access to its attributes and methods.
@rajmajumdar5253
@rajmajumdar5253 Жыл бұрын
It's not an extra parameter.
@rishabhpandey5623
@rishabhpandey5623 Жыл бұрын
I took data science course from PW skills , but i am learning from here and I understand better. Thanks harry bhai.. ❤❤❤
@vishalsen7345
@vishalsen7345 Жыл бұрын
Same Bro! I took course from AlmaBetter but I am learning here! Course is only for road map!
@wewesusui9528
@wewesusui9528 Жыл бұрын
Us moment bhai i took it from datamites
@maths6859
@maths6859 Жыл бұрын
Data science me konse topic tak tum pahuch gae bhai
@prathameshmainkar2226
@prathameshmainkar2226 Жыл бұрын
@@vishalsen7345 how is the almabetter course? is their job guarentee claim true??
@prathameshmainkar2226
@prathameshmainkar2226 Жыл бұрын
how is the pw skills course?
@Aditya-tv2gr
@Aditya-tv2gr Жыл бұрын
self means that object in which the method is being called.
@abhaypatil2517
@abhaypatil2517 Жыл бұрын
Self parameter is "Vo wala object jiske liye method call kiya ja raha hai". Writing in hindi to remember more efficiently :)
@aksaismail1873
@aksaismail1873 Жыл бұрын
Thanks Harris brother for clearing oop in a brilliant way,it is admirable.
@teekamchand4370
@teekamchand4370 Жыл бұрын
"Self" refers to the object which is followed by a class method.
@pratikshelke7493
@pratikshelke7493 Жыл бұрын
The self parameter is a reference to the current instance of the class, and is used to access variables that belongs to the class.
@AliHaider-xx2hm
@AliHaider-xx2hm Жыл бұрын
the self parameter is the current instance of the class. it is used to access the variables that belong to the class
@anonymous-ss8yc
@anonymous-ss8yc Жыл бұрын
Great lecture brother ❤️❤️❤️
@alakhmanipriya5861
@alakhmanipriya5861 Жыл бұрын
Please after the this 100 days series please make dart programming playlist 😔
@tomaatoo137
@tomaatoo137 Жыл бұрын
Self parameter is the object/instance for which the method is being called🙂
@parwatsingh677
@parwatsingh677 Жыл бұрын
OP python course 👌👌
@bhupendranarayansinha3323
@bhupendranarayansinha3323 Жыл бұрын
self parameter is a refrence to current instance of the class . It used to access to the variable that belongs to the class.
@alinaqvi786
@alinaqvi786 Жыл бұрын
Hii herry bro ❤️ I hear very carefully when you talk your experience because i am implementing in my coding journey life. So thanks
@arjunpawar3389
@arjunpawar3389 5 ай бұрын
self ka matlab vo object jiske liye koye method call kiya hai --> self parameter is an reference to the current instance of the class and used to access variable that belongs to the class
@vibesofficial5169
@vibesofficial5169 Жыл бұрын
self - vo object jiske liye ye method call ho rha hai.
@mohdfaisal4725
@mohdfaisal4725 10 ай бұрын
self parameter is a reference to the current instance or object of the class and it is used to access variables belonging to that class.
@prasannarajpaulmaddala5674
@prasannarajpaulmaddala5674 Жыл бұрын
Bro, please make a ultimate Java course plz We(cse) are having Java as major Please make asap bro I 💕 your content and way of teaching bro Keep doing This python course is very helpful for my friends (other dept as well as for us)
@devpandya7903
@devpandya7903 Жыл бұрын
Ohh bhai playlist dekho harry bhai ki he already have one playlist of java
@cube6325
@cube6325 Жыл бұрын
He do have Java course, but it is kinda bit old.
@digvijayjadhav1452
@digvijayjadhav1452 Жыл бұрын
self parameter is a reference to the current instance of that class and is used to access variables that belong to that class
@sumedhbirare5709
@sumedhbirare5709 Жыл бұрын
I was a bit confused but your definition helped😅
@ashirwadsharma8279
@ashirwadsharma8279 3 ай бұрын
Self ka matlb Vo Object jiske liye Method Call Horaha h
@svk0071
@svk0071 3 ай бұрын
Self parameter is a reference to the current instance of class and is used to access variables that belong to that class. (Self ka matlab woh object jis ke liye koi method call kia ja raha hai)
@SanatanDharma.....
@SanatanDharma..... Ай бұрын
2024 beginner attendance here ❤❤❤❤😂😂😂
@SaiGaneshPulijala
@SaiGaneshPulijala 5 ай бұрын
self parameter is a reference to a class which is used to access the variables belonging to that class
@indianpc8602
@indianpc8602 Жыл бұрын
'self' refers to the current instance of the class (i.e the object) on which the method is called.
@madhanmohan9386
@madhanmohan9386 5 ай бұрын
Self is the object that is calling the method in a class
@Helly04
@Helly04 Жыл бұрын
Self means "that object" on which "the created method" is being called.
@AdarshKamble-yb2hd
@AdarshKamble-yb2hd 5 ай бұрын
Self point the current object of class
@smilekr3689
@smilekr3689 7 ай бұрын
self jo use kry ghy function wo usy class ky object ko refer kry ghy like class Students and with student_info() then a.student_info() jb kry ghy agr to self a ko refer kry gha agr a mei koi object banaya ho gha to wo aa jhy gha self mei werna by default jo class mei diya hai wo utha ky gha
@DivyamPyMaster
@DivyamPyMaster Жыл бұрын
Self ka matlab woh object jis pr ye method call ho raha hai Thank you so much Harry bhai
@ThomasShelby47270
@ThomasShelby47270 9 ай бұрын
Self refers to the current object information
@Shubham.Katal.58
@Shubham.Katal.58 4 ай бұрын
Self means for which we call a method
@shashank.4705
@shashank.4705 Жыл бұрын
6:21 ,Sir we can also write print statement also this way less complex print(self.name ,"given a salary", self.salary) rather than in Curly Brackets
@INSPECTOR_Thakur
@INSPECTOR_Thakur 5 ай бұрын
self parameter is the refrence to the current instance of the class and is used to access variables that belongs to the class 7:41
@RK15508
@RK15508 Жыл бұрын
Self ka matlab vo object jis ke liye mathod call Kiya jaa Raha hai and is ko (.)Operator se access karte hai
@abhisiktaghosh6607
@abhisiktaghosh6607 5 ай бұрын
Awesome harry bhaiya ❤
@fearlessbantai4846
@fearlessbantai4846 4 ай бұрын
self means that object for which method is callled self ka matlab wo object jiske liye koi method calll kia ja raha hai
@helloeveryone6614
@helloeveryone6614 3 ай бұрын
Self ka mtlb wo object jiske liye method call kiya ja rha h.❤
@devanshtanwar4075
@devanshtanwar4075 4 ай бұрын
the self parameter is that object on which this method is being called(The self parameter is a reference to the current instances of the class,and is used to access variables that belongs to the class .
@aadibansal1837
@aadibansal1837 Жыл бұрын
'Self' is used to refer to the current instance of the class i.e. the object for which the method is called.
@jain-gl5jt
@jain-gl5jt 7 ай бұрын
self ka matlab woh object jispe ye mathod call ho raha hai and thanks harry bhai me aapko 2021 se follow kar raha hoon us samay me class 11 me tha aaj college(iit madras) me study kar raha hoon galti se aapka channel mila tha aaj me proud se boltha hoon meri galti achi thi
@EmpowerTheVoice
@EmpowerTheVoice 10 ай бұрын
class person: def info (self): print (f"{self.name} is a {self.occupation}") #objects creation a = person () a.name = "Shais" a.occupation = "Pyhthon Developer" a.info() b = person () b.name = "Atta ur rehman" b.occupation = "Laptop Technician" b.info() c = person () c.name = "Molana" c.occupation = "Graphic Designer" c.info()
@loju-z9o
@loju-z9o 10 ай бұрын
print("self parameter is a reference to current instance of class and is used to access variables that belong to class THANK YOU harry bhai and done with day 57
@narendraparmar1631
@narendraparmar1631 11 ай бұрын
Very Informative Thanks Harry
@pranavmehta9141
@pranavmehta9141 9 ай бұрын
self keyword is used to represent the instance(object) of a class, by using self keyword we can access the attributes and methods of a class.
@AkashKumar-c2l8k
@AkashKumar-c2l8k 10 ай бұрын
self parameter is reference to the current instance of the class and used to access the variables that belong to the class
@anmoldeep7816
@anmoldeep7816 10 ай бұрын
alag alag object pe ye method use krne ke liye self use hota hai
@devendrapatel5255
@devendrapatel5255 8 ай бұрын
self is the current instance of the class and it is used to access the variable that belongs to class
@IslamicXkardash
@IslamicXkardash Жыл бұрын
Self' is used to refer to the current instance of the class i.e. the object for which the method is called
@109_debjitacharjee9
@109_debjitacharjee9 8 ай бұрын
Self ka matlab woh object jisme woh method call ho rha hai
@ragingogre759
@ragingogre759 10 ай бұрын
self parameter is an reference to the current instance of the class and is used to access variables tht belongs to the class
@gyanambhalgat
@gyanambhalgat 6 ай бұрын
Self ka matlab wo object jiske liye koi method call kia ja raha hai🤗
@TejaswiniGajbhiye-e3t
@TejaswiniGajbhiye-e3t Жыл бұрын
self is reference to current instance of the class, and used to access variables that belongs to class.
@Akhildesignsbuddy
@Akhildesignsbuddy 10 ай бұрын
self parameter is reference to current instance of class it can be use to acess variable belong to that class
@muskanthakur633
@muskanthakur633 Жыл бұрын
self object is used to refer to current instance of the class and the object for which the method is called
@Crimsonsovereign
@Crimsonsovereign Жыл бұрын
Self ka matlab wo object jiske liye method call kiya ja raha he iska mtlb self sirf class me use hoga 6:59
@Rayan-n1d7g
@Rayan-n1d7g 11 ай бұрын
Self parameter is a instance of class and is used to acess variables that belong to the calss
@falgunisunke4814
@falgunisunke4814 Жыл бұрын
self refers to the current instance of that class and the object for which the method is called.
@hereyoufindentertainment8879
@hereyoufindentertainment8879 Жыл бұрын
self parameter is used to refer the object for which function is to be called.
@misahhere9224
@misahhere9224 Жыл бұрын
Self is for referring the object for which the method has been called
@URcristianoooooooooooo
@URcristianoooooooooooo Жыл бұрын
Self is a keyword used to access variable made in method
@deepakjha9933
@deepakjha9933 6 ай бұрын
Herry bhai manana padega yar apko, gajab samjhate ho.... Heads off to u bro....
@HammerHead-oq5de
@HammerHead-oq5de 7 ай бұрын
self ka matlab voh object jiske liye method call kia ja raha hai. [ self parameter is used to access the current instance of the class and is used to access variables and methods that belong to that class]
@SlayerXD-rz3lv
@SlayerXD-rz3lv Жыл бұрын
self method is used to call the blueprint (class) for particular instance
@rajgurubhosale8680
@rajgurubhosale8680 Жыл бұрын
we can understand self as a current object on which we are using method
@kirthankiran
@kirthankiran Жыл бұрын
Self ka matlab voh object jispe ye method call horaha hai
@PawannShorts21
@PawannShorts21 Жыл бұрын
Self means the currunt instance of the variable
@samakshgarg3408
@samakshgarg3408 Жыл бұрын
self parameter is the refrence to the current instance for which the method is called
@ZaidIlyas-y1z
@ZaidIlyas-y1z 4 ай бұрын
self means that object for whom the the method is called.
@dheerajsharma-of8xs
@dheerajsharma-of8xs Жыл бұрын
Self is used for refering current instance of Class or object for which the method is called....
@sanskarkhandelwal
@sanskarkhandelwal 11 ай бұрын
Self parameter is a reference to the current instance of the class ,and is used to access variables that belongs to the class , jis par method call ho rha h
@shafisutriwala2308
@shafisutriwala2308 Ай бұрын
7:06 Self ka matlab woh object jiske liye method call kiya jaa rha hai
@SDA_XII_E_23
@SDA_XII_E_23 Жыл бұрын
self ka matlab wo object jiske liye function call ho raha hain
@RaviRanjan-zc5lu
@RaviRanjan-zc5lu Жыл бұрын
Self = the object for which the method is called In other words, self = a
@52_PrathmeshPawar
@52_PrathmeshPawar 4 ай бұрын
self is reference to current instance of class used to access variable belong to that class.
@virendragawande7757
@virendragawande7757 2 ай бұрын
Harry Bhai 1 no course hai ❤,
@krishr8599
@krishr8599 Жыл бұрын
self is a parameter which is used to call the object in a class at that instance
@Benz-yg3yz
@Benz-yg3yz 5 ай бұрын
Self is a parameter that is used to provide info. Of current instance
@ayushshaw1755
@ayushshaw1755 8 ай бұрын
Self is a reference to that object for which the method is being called.
@Kahani-ki-jubani-eb3ps
@Kahani-ki-jubani-eb3ps 6 ай бұрын
Self means to call method . Thank you harry bhaiya for clearing doubts.
@Love_ff_7
@Love_ff_7 5 ай бұрын
'self' means that object for which the method is called ie. self ka matlab wo object jiske liye method call kiya ja raha hai. [self parameter is a reference to the current instance of the class and is used to access the variable that belongs to the class.]
@SuryakantaSahoo-mg6ss
@SuryakantaSahoo-mg6ss 3 ай бұрын
self means allowing access to its attributes and methods
@therandomiser9809
@therandomiser9809 3 ай бұрын
Self is the reference to the current instance/object of the class
@MrUtilityGuru
@MrUtilityGuru 11 ай бұрын
The meaning of self is the reference of the desired string.
@dhruvgupta2801
@dhruvgupta2801 Жыл бұрын
self is a object on which method is called, a reference for the object inside the class functions.
@bhavyajethi5297
@bhavyajethi5297 Жыл бұрын
self parameter means that parameter by which we can refer to an object by calling a method.
@arjunnair4693
@arjunnair4693 4 ай бұрын
self ka matlab vo object jiske liye method mai call kiya ja rha hai
@randomai-i1
@randomai-i1 3 ай бұрын
i have done it like this class detials: name = input("Enter your name: ") occupation = input("Enter your occupation: ") salary = input("Enter your salary: ") gender = input("Enter your gender: ") if gender == "Male" or gender == "male": gender = "he" elif gender == "Female" or gender == "female": gender = "she" print(f"{detials.name} is a {detials.occupation} and {detials.gender} earns {detials.salary}")
@crazytechgenius6623
@crazytechgenius6623 Жыл бұрын
thanks codewithharry for these courses
@EmpowerTheVoice
@EmpowerTheVoice 10 ай бұрын
love from pakistan its been 57th lecture i am learning python from you i must say you are best then my university professors
@sujalagarwal7762
@sujalagarwal7762 Жыл бұрын
Self parameter is used to call those object whose method is called
@atharvajawalkar9078
@atharvajawalkar9078 Жыл бұрын
self parameter is reference to current instance of the class for which method is called
Constructors in Python | Python Tutorial - Day #58
11:17
CodeWithHarry
Рет қаралды 259 М.
Introduction to OOPs in Python | Python Tutorial - Day #56
15:54
CodeWithHarry
Рет қаралды 346 М.
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 17 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 21 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
How I Would Learn Python FAST in 2024 (if I could start over)
12:19
Thu Vu data analytics
Рет қаралды 579 М.
OOP in Python | Object Oriented Programming
1:45:19
Telusko
Рет қаралды 1,8 МЛН
What Do Software Engineers Actually Do? (It’s Not What You Think)
13:07
Object Oriented Programming with Python - Full Course for Beginners
2:12:35
freeCodeCamp.org
Рет қаралды 1,9 МЛН
you need to learn Python RIGHT NOW!! // EP 1
17:42
NetworkChuck
Рет қаралды 2,4 МЛН
Python OOP Tutorial 1: Classes and Instances
15:24
Corey Schafer
Рет қаралды 4,5 МЛН
How I would learn to code (If I could start over)
13:14
CodeWithHarry
Рет қаралды 200 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,2 МЛН
Object Oriented Programming in python
1:08:29
Chai aur Code
Рет қаралды 97 М.