i

Python Programming

Creating Instance Objects

To create instances of class, you call class using class name and pass in arguments its __init__ methods accept.

emp1 = Emp("Zara", 2000)

emp2 = Emp("Manni", 5000)