Answers for "object creation using class constructor"

0

object creation using class constructor

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

E1=Employee("Employee name1")
print(E1.name)
Posted by: Guest on June-27-2021

Code answers related to "object creation using class constructor"

Python Answers by Framework

Browse Popular Code Answers by Language