All pastes #451438 Raw Edit

Something

public text v1 · immutable
·published 2007-04-21 14:51 UTC
rendered paste body
#ifndef RESOURCE_H_
#define RESOURCE_H_

class Resource {
	protected: 
		int blubb;
	
	public:
		Resource(int blah);
		virtual ~Resource();
		virtual int getblah();
};

#endif /*RESOURCE_H_*/


// Resource.cpp
#include "Resource.h"

Resource::Resource(int blah) {
	blubb = blah;	
}

int Resource::getblah() {
	return blubb;
}




#ifndef HUMANRES_H_
#define HUMANRES_H_
#include "Resource.h"

class HumanRes : public Resource {
	public:
		HumanRes(int blah) : Resource(blah) {  };
		~HumanRes();	
	
};

#endif /*HUMANRES_H_*/