Python Default Constructor || Constructor || Python
In this we are going to see a basic example of default constructor in Python Programming Language.



class Object:
    def __init__(self):
        print(f"Object created")

o1 = Object()
o2 = Object()

# Coded by Saahil 


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post