Hi there guys, i'm just learning python and have been finding it interesting, but i've been finding it hard to understand classes and objects. Please is there a very explanatory tutorial or can you be of help, looking forward to your replies.
e-papa
13
Posting Pro in Training
Recommended Answers
Jump to PostClasses describe objects
Objects hold data and do workIf you can imagine your program as "He does something, and in order to do it, he asks her to do something, and she needs help from several of her friends..." then each of the 'he', 'she' and 'friend' might …
Jump to PostA simple explanation of a Python class object ...
# a look at Python's class constructor, method and instance # class names are capitalized by convention to aid readability class Animal: def __init__(self, animal, sound): """ The constructor __init__() brings in external parameters when an instance of …
All 8 Replies
woooee
814
Nearly a Posting Maven
e-papa
13
Posting Pro in Training
griswolf
304
Veteran Poster
TrustyTony
888
pyMod
Team Colleague
Featured Poster
lrh9
95
Posting Whiz in Training
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
e-papa
commented:
Thanks for the explanation.
+1
Legnoduro
commented:
Very understandable explanation.
+0
e-papa
13
Posting Pro in Training
e-papa
13
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.