1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/tests/ulib/plugin/product2.cpp
2017-10-04 18:26:27 +02:00

14 lines
340 B
C++

// product2.cpp
#include "product.h"
class U_EXPORT Product2 : public Product {
public:
Product2() {}
virtual ~Product2() { (void) write(1, U_CONSTANT_TO_PARAM("distruttore Product2\n")); }
virtual void print(ostream& os) const { os.write(U_CONSTANT_TO_PARAM("I am Product2\n")); }
};
U_CREAT_FUNC(product2, Product2)