Files
hwr2024_b/cpp/classes/IComparable.h
T

14 lines
373 B
C++

#ifndef POINTER_ICOMPARABLE_H
#define POINTER_ICOMPARABLE_H
#include <iostream>
class IComparable {
public:
// only for presentation purposes
IComparable() { std::cout << "IComparable()" << std::endl; }
virtual ~IComparable() { std::cout << "~IComparable()" << std::endl; }
virtual int CompareTo(IComparable* other) = 0;
};
#endif //POINTER_ICOMPARABLE_H