The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: Kurt Schwehr <schw...@gmail.com>
Date: Wed, 24 Jun 2009 08:22:19 -0700 (PDT)
Local: Wed, Jun 24 2009 11:22 am
Subject: A superclass using a child classes' methods
I'm trying to build an OO system for encoding and decoding
datapackets. I'd like the parent class to have an encode function that uses each of the child classes' packing methods. It appears that this works for attributes of children accessed by the parent, but not for methods. Is that right? For attributes I found this example, where the alphabet attribute is set in the child, but used in the parent. http://www.pasteur.fr/formation/infobio/python/ch19s04.html Should I just set an attribute in the child class and then call the Thanks, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||