Computer Science, asked by PRANAVPRADEEP20621, 1 year ago

To concatenate two strings to a third what statements are applicable

Answers

Answered by Cheemaking
0

Answer:

class father:

def __init__(self, param):

self.o1 = param

 

class child(father):

def __init__(self, param):

self.o2 = param

 

>>>obj = child(22)

>>>print "%d %d" % (obj.o1, obj.o2)

Answered by Anonymous
0

Explanation:

Answer:

class father:

def __init__(self, param):

self.o1 = param

 

class child(father):

def __init__(self, param):

self.o2 = param

 

>>>obj = child(22)

>>>print "%d %d" % (obj.o1, obj.o2)

Similar questions