Class with private data members. : Private : Class PYTHON TUTORIALS


PYTHON TUTORIALS » Class » Private »

 

Class with private data members.


class PrivateClass:
   def __init__self ):
      self.publicData = "public"      public data member
      self.__privateData = "private"  private data member



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Class
» Private