Friday, 15 June 2018

To demonstrate working of classes and objects using python programming.

# To demonstrate working of classes and objects

#definition of class
class check:
    def func_A(self):
        print("I am Function A.")
    def func_B(self):
        print("I am function B.")

c = check()
c.func_A()
c.func_B()

input("Press Enter to exit.")

No comments:

Post a Comment

Popular Posts