inheritance?

KraftDiner bobrien18 at yahoo.com
Tue Aug 15 22:35:11 EDT 2006


I have two classes:

class implicitClass:
   def __init__(self):
   def isIVR(self):  #This is a class private method.
   def fromfile(self, fileObj, byteOrder):
   def getVR(self):
   def getGroup(self):
   def getElement(self):
   def getSize(self):
   def getData(self):

class explicitClass:
   def __init__(self):
   def fromfile(self, fileObj):
   def getVR(self):
   def getGroup(self):
   def getElement(self):
   def getSize(self):
   def getData(self):


As you can see the interface is almost identical.

How can I define a base class that will abstract
the type such that I don't know if its really and inplicit
or explicit object?




More information about the Python-list mailing list