Base.py 1/3

[
top][prev][next]

class Base:
    """Abstract class Base
    """
    # Attributes:
    dummy = None  # (int) 
    __x = 0  # (int) 
    
    # Operations
    def foo(self, a = 0):
        """function foo
        
        a: int
        
        returns int
        """
        raise NotImplementedError()
    
    def _bar(self, x = 0, y = 0):
        """function bar
        
        x: int
        y: int
        
        returns int
        """
        raise NotImplementedError()
    


Derived.py 2/3

[
top][prev][next]
from PureAbstract import PureAbstract
from Base import Base

class Derived(Base, PureAbstract):
    """Class Derived
    """
    # Attributes:
    
    # Operations
    def foo(self, a = 0):
        """function foo
        
        a: int
        
        returns int
        """
        return None # should raise NotImplementedError()
    
    def newfoo(self):
        """function newfoo
        
        returns int
        """
        return None # should raise NotImplementedError()
    
    def otherfoo(self):
        """function otherfoo
        
        returns int
        """
        return None # should raise NotImplementedError()
    
    def _bar(self, x = 0, y = 0):
        """function bar
        
        x: int
        y: int
        
        returns int
        """
        return None # should raise NotImplementedError()
    


PureAbstract.py 3/3

[
top][prev][next]

class PureAbstract:
    """Abstract class PureAbstract
    """
    # Attributes:
    
    # Operations
    def otherfoo(self):
        """function otherfoo
        
        returns int
        """
        raise NotImplementedError()
    


Generated by GNU enscript 1.6.1.