Non-Parameterized Constructor in Python | Python Programming in Hindi #67

preview_player
Показать описание
In this video, I have explained what is Non-Parameterized Constructor in Python.
The non-parameterized constructor uses when we do not want to manipulate the value or the constructor that has only self as an argument.
Ex:-
class Student:
# Constructor - non parameterized
def __init__(self):
print("This is non parametrized constructor")
def show(self,name):
print("Hello",name)
student = Student()

Other important video links:-

👍 LIKE ✍ COMMENT ✉ SHARE ❤ SUBSCRIBE
Рекомендации по теме
Комментарии
Автор

Nice explanation..keep up the good work..

AbhaGupta
visit shbcf.ru