1.

What Will Be The Output Of The Following Code class C(object): Def__init__(self): Self.x =1 C=c() Print C.x Print C.x Print C.x Print C.x

Answer»

class C(OBJECT):
Def__init__(self):
Self.x =1
C=c()
PRINT C.x
Print C.x
Print C.x
Print C.x

All the outputs will be 1

1
1
1
1

All the outputs will be 1

1
1
1
1



Discussion

No Comment Found