# 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.")
If you have a great ability of thinking, imagination and visualisation than you have to codes your thinking and visualisation.
Friday, 15 June 2018
To demonstrate working of classes and objects using python programming.
Subscribe to:
Post Comments (Atom)
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
-
# Python Program To demonstrate inheritance. # Parent Class class parentCls: def __init__(self): print("Parent Cl...
-
# To implement Queue using list queueList = [] def enQueue(ele='\0'): if ele!='\0': queueList.append(...
-
#Python program to demonstrate constructors # declaration of class class myClass: def __init__(self,fName,lName): # Constructor...
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.
ReplyDeletePython Online training
Python Course institute in Bangalore
Thank you.
DeleteIt is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...thanks lot!!
ReplyDeleteandroid training in chennai
android online training in chennai
android training in bangalore
android training in hyderabad
android Training in coimbatore
android training
android online training
Thanks for this amazing blog , it is very useful content for us
ReplyDeletekeep 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