Close
Close

class concept problem in python

   Bingle98

suppose I make a make a class in python lets say

class abc():

    def __init__(self,data):

         self.data=data

now my main code is following….

abc(“this line is accepted what does it mean I didn’t make a object”)

what does the above line mean in python it is accepted even though I didn’t make any object of the class 

 

 


Answers

Ask Yours
Post Yours
Write your answer