| Reply | « Previous Thread | Next Thread » |
|
When I need to use classes? Any good examples?
|
| DrivingMobileInnovation |
| View Public Profile |
| Find all posts by DrivingMobileInnovation |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
This is a question that is more about Python in general rather than Python for S60. See this.
|
|
Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
gaba88
Online
Forum Nokia Champion
|
|
hi DrivingmobileInnovation
better you have a look at this Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
I'm not sure how a module differs from a class. Could you explain me?
|
| DrivingMobileInnovation |
| View Public Profile |
| Find all posts by DrivingMobileInnovation |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
|
Quote:
A class is an object, something that has attributes and methods. For example, app is a class in the appuifw module. |
|
Quote:
|
| DrivingMobileInnovation |
| View Public Profile |
| Find all posts by DrivingMobileInnovation |
|
Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
gaba88
Online
Forum Nokia Champion
|
|
hi DrivingMobileInnovation
i think the question is more of a object orientated concept rather than a PyS60. As far as i know classes are nothing else but a group of functions only but classes keeps different types of function in one group and in an organized manner. In functions we can have nested functions but its not a good programming technique it will be tedious and inefficient. hope this helps. ![]() ![]() Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
Of course you can use only functions to make your applications. I for one recommend it, as working with classes can get confusing. But don't forget classes can also be useful.
|
|
Module in Python:
The basic unit of code reusability in Python: a block of code imported by some other code. Three types of modules concern us here: pure Python modules, extension modules, and packages. Read the docs at http://docs.python.org ! Br, Croozeus |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| The following classes and resources could not be loaded ERROR!! | keithgardiner | Mobile Java Tools & SDKs | 4 | 2007-02-01 21:03 |
| Accessing an object across Classes in Dll | yogpan | General Symbian C++ | 1 | 2006-06-22 19:05 |
| T classes and destructors | profoundwhispers | General Symbian C++ | 7 | 2004-08-26 11:02 |
| Where are the classes? | nreddy | Mobile Java Tools & SDKs | 0 | 2003-08-10 08:58 |
| Including jar/zip classes to MIDP App | lassilehto | Mobile Java Tools & SDKs | 0 | 2003-07-14 15:18 |