In this we are going to see a basic program on Python Function Overloading in Python Programming Language.
class Employee:
def hello(self, name=None):
if name is None:
print("Hello")
else:
print(f"Hello {name}")
emp1 = Employee()
emp1.hello()
emp1.hello("HFC")
# Coded By Dhiraj Shelke
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP