Added: C++ projects
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// Created by David Hackbarth on 22.09.26.
|
||||
//
|
||||
|
||||
#ifndef CLASSES_ICOMPARABLE_H
|
||||
#define CLASSES_ICOMPARABLE_H
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class IComparable
|
||||
{
|
||||
public:
|
||||
// only for demonstration purposes
|
||||
IComparable() { cout << "IComparable constructor called" << endl; }
|
||||
virtual ~IComparable() { cout << "IComparable destructor called" << endl; }
|
||||
|
||||
virtual int compareTo(const IComparable& other) const = 0;
|
||||
};
|
||||
|
||||
#endif //CLASSES_ICOMPARABLE_H
|
||||
Reference in New Issue
Block a user