understanding class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aLiase
    New Member
    • Nov 2007
    • 5

    understanding class

    Hi,

    I've been learning python for quite a while now, and I understand everything very well, except class.

    So, if somebody could help me understand class. I think my main problem with not understanding class is that I'm not sure how I should use it in a program.

    Thanks.
  • micmast
    New Member
    • Mar 2008
    • 144

    #2
    There is a post about this subject here: Class explanation

    Comment

    • raubana
      New Member
      • Feb 2008
      • 55

      #3
      Classes can be difficult. It was for me untill I found out how little of a deal it really was. Here's an example I made a while ago if you need help:

      MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.


      The point of classes are to make more of one thing that can act dependently but still work as told. This si so you can make a bunch of one thing, but only write a few lines of code. Just think of it as a regular object you can make, but instead it's got 'self.' in front of everything so it knows it's talking about its self.

      Comment

      Working...