Python Tutorial For Beginners | init method and self keyword in python

Pubblicato il: 21 maggio 2020
sul canale di: harshal mishra
50
1

Please like and subscribe this video for continuous updates

Full Playlist :    • Py-Pie Python Tutorial  

Facebook :   / py-pie-python-for-beginners-113344127050954  

Twitter:   / shankar35425457  

'''
init() and self keyword in python

'''

class Student:

def __init__(self, name):
self.name = name

def setName(self, name):
self.name = name

def getName(self):
return self.name

stu1 = Student("Harshal")
print(stu1.getName())
print(stu1.__dict__)


In questa pagina del sito puoi guardare il video online Python Tutorial For Beginners | init method and self keyword in python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato harshal mishra 21 maggio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 50 volte e gli è piaciuto 1 spettatori. Buona visione!