[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] very easy snippets to start: where from i can get?



On Mon, Jul 28, 2008 at 1:08 AM, Paulo Silva <nitrofurano@xxxxxxxxx> wrote:

> about oop, i'm really curious about learning it, but i have to see
> examples (smaller than 1kb, please...) explaining clearly where and
> how the code gets so improved instead as coding them as procedural
> (all of my trying experiences on oop coding were completely
> frustrating up to now...)
>

In many ways it is just a matter of the subroutines having private
data. And then, taking those routines and using them as a basis for
extended data and routines based of the first ones.

And this idea too but I don't use it much.
http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming

-- 
Douglas E Knapp

http://sf-journey-creations.wikispot.org/Front_Page