Added: C++ projects

This commit is contained in:
2026-09-29 22:09:02 +02:00
parent 11929bad68
commit 0af79b3686
32 changed files with 1397 additions and 0 deletions
+22
View File
@@ -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