example of creating class with constructor in Python

Creating class with constructor 

   अभी हम समझते है constructor है क्या ओर constructor के साथ कैसे काम कर सकते है । 

    तो constructor एक special type of method है और इस constructor के throungh जो है जब भी आप एक object को creat करते हो creation के time पे ही जो है आप सभी value को assigen कर सकते है 

  ओर in Python आप constrictor को init method के साथ define करते है 

Post a Comment

0 Comments