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.")

4 comments:

  1. Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries. I want to say thanks for great sharing.
    Python Online training
    Python Course institute in Bangalore

    ReplyDelete
  2. Thanks for this amazing blog , it is very useful content for us
    keep sharing this type of informtion
    if anyone is looking for the best python taining institute in Delhi
    I would like to talk about the High Technologies solutions .


    Python training institute in delhi
    Best training institute in delhi
    High Technologies Soutions Provide you the best training for the python , here you get the onlne and offline classes
    the faculty of this institiute is very experinced , they always give support to their students, you can get the job placements from here .
    For more details contact on 9311002620
    you can also visit the website for more information
    https://www.htsindia.com/Courses/python/python-training-institute-in-south-delhi

    ReplyDelete

Featured post

In all other cases the driver is not insured. If the marital status, sex and age of the driver are the inputs, write a program to determine whether the driver is to be insured or not.

  #include #include int main() { char ms;   printf("Is Driver married (Y/N): ");  scanf("%c",&ms);   if(ms=='y&#...

Popular Posts