#include using namespace std; class Animal { public: Animal() { // Konstruktor cout << "Der Konstruktor wird aufgerufen." << endl; m_alive = true; } ~Animal() {cout << "Der Destruktor wird aufgerufen." << endl;} bool isAlive() { // Methode return m_alive; } void kill() { // Methode m_alive=false; } private: bool m_alive; // Member-Variable }; int main(void) { int i; bool alive; Animal a; // Instanz von Animal Animal b; // noch eine ^ }