HomePython Object-Oriented Programming With Python (part 2)
Object-Oriented Programming With Python (part 2)
With the basics out of the way, this concluding article discussesmore advanced aspects of Python's OO implementation, including inheritance,destructors and overrides.
Last time out, I gave you a crash course in object-oriented programming in the context of Python development. I explained what classes and instances were, showed you how to construct a class and create instances from it, demonstrated how to access class methods and properties, and tossed in a few real and not-so-real examples.
In this concluding article, I'll be deliving deeper into the topic, with a look at inheritance, destructors and overrides. This may sound complex at first glance, but I've done my best to make it easy to understand and apply - so come on in and tell me what you think!