Python Tutorial - 21 | __init__ method in Python | Constructor | Sinhala

preview_player
Показать описание
Python Tutorial - 21 | __init__ method in Python | Constructor | Sinhala
------------------------------------
"__init__" is a reseved method in python classes. It is called as a constructor in object oriented terminology. This method is called when an object is created from a class and it allows the class to initialize the attributes of the class.

▬▬▬▬▬▬ Want to learn more? 🚀 ▬▬▬▬▬▬

▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬

#programming
#sinhala
#codeprolk
Рекомендации по теме
Комментарии
Автор

Thanks a million bro!!... most wanted one.🙂😊

zeeinfo
Автор

patt 👍🤟 hodatama thereno
heta anith video eken set wemu 👈


good job 👍👋

RJ_
Автор

1:28 මට පොඩ්ඩක් කියල දෙන්නකො name age කියන්නෙ attributes නේද මොකද ඒව class එකක් ඇතුලෙ define කරපු හින්ද.. ඒත් මෙතෙන්දි name age වලට self key word එක use නොකර object එකෙ ඉදන් access කලේ කොහොමද

SavaBytes
Автор

6:01 kamal ගෙ details name age වලට assign වෙලා එවෙලෙම(object 2 create කරනකොටම) nimal ගෙ details assign වෙද්දි මුල් එක delete වෙන්නෙ නැද්ද... සාමාන්‍ය variables වලදි නම් කලින් එක නැතිව අලුත් එක නෙ variable එකෙ store වෙන්නෙ...init method එක නිසා නේද මෙහෙම වෙන්නෙ

SavaBytes
Автор

puluwam nm mewage video ekka apita karanna home works denna.
meke berinam wenama hari kamak neme, denna balanna....
video tika hodai. mm w3school eketh try kara... eeth ewata wada oyage video godak pehedili...
good

eshanmalimbada
Автор

Me videon ekath 5+ baluwa yaluwa....I'm RJ


OYA NAM GOOD TEACHER KENEK 😍🤩

rjhacker
Автор

What is the reason to have error messages when I write words such as print, int, str in python . It is said that I should import bulletins to recover the problem.
What is the reason for that?

kenurasanvidu
Автор

instance method kiyana eka pahadili karala denna

okddumj
Автор

2048 දි මේ වීඩියෝ සෙට් එක බලන අහිංසක මම 😊❤

මම කාලය හරහා අතීතයට ඇවිල්ලා මේ කොමෙන්ට් එක දැම්මේ

sgeeth
Автор

init method aken saralawama wenne mokakkda

prasangaprix
Автор

class phone():
def sqrt(self, arg3):
import math
self.x = arg3
print(math.sqrt(arg3))


s=phone()
while True:
x=float(input('enter your number here = '))
s.sqrt(x)


☺meka mita wada mehema karana eka lesine ? me class create kirime wasiya mokakda ?

while True:
x=float(input('enter number here = '))
import math
print(math.sqrt(x))

sujithwasantha
join shbcf.ru