There's a header class called example.h
#ifndef __Sample_H__
#define __Sample_H__
namespace example
{
namespace Samples
{
class AlgorithmSample
{
public:
virtual void release(void) { delete this; }
virtual boolean process(void);
};
class AlgorithmDesc
{
public:
virtual String getName(void) const { return "some example program"; }
};
};
};
#endif
the example.cpp file
#include "Sample.h"
#include <iostream>
boolean Sample::process(void)
{
std::cout<<" printed this !! " <<std::endl;
return true;
}
Then i need to call the above process method from another class, how should i do that
for example say, we have a class called Animal.cpp , and i need to call the process() function of sample.cpp class from the process() function of Animal.cpp class
Hope i didn't confuse you'l, in a nutshell both Animal.cpp and sample.cpp has a Process() function, and i need to call the process() function of sample.cpp from Animal.cpp's process() function.
Please help :(