base.cpp 1/6

[
top][prev][next]
#include "base.h"


base.h 2/6

[
top][prev][next]
#ifndef BASE_H
#define BASE_H


// Abstract
class Base {
  // Associations
  // Attributes
  public:
    static int dummy;
  private:
    int x;
  // Operations
  public:
    virtual int foo ( int a = 0 ) = 0;
  protected:
    virtual int bar ( int x = 0, int y = 0 ) = 0;
};

#endif

derived.cpp 3/6

[
top][prev][next]
#include "derived.h"

int Derived::foo ( int a = 0 ){
}

int Derived::newfoo (  ){
}

int Derived::otherfoo (  ){
}

int Derived::bar ( int x = 0, int y = 0 ){
}


derived.h 4/6

[
top][prev][next]
#ifndef DERIVED_H
#define DERIVED_H

#include "pureabstract.h"
#include "base.h"

class Derived: public Base, public PureAbstract {
  // Associations
  // Attributes
  // Operations
  public:
    int foo ( int a = 0 );
    static int newfoo (  );
    int otherfoo (  );
  protected:
    int bar ( int x = 0, int y = 0 );
};

#endif

pureabstract.cpp 5/6

[
top][prev][next]
#include "pureabstract.h"


pureabstract.h 6/6

[
top][prev][next]
#ifndef PUREABSTRACT_H
#define PUREABSTRACT_H


// Interface
class PureAbstract {
  // Associations
  // Attributes
  // Operations
  public:
    virtual int otherfoo (  ) = 0;
};

#endif

Generated by GNU enscript 1.6.1.