diff options
author | Patrick Simianer <p@simianer.de> | 2014-06-15 03:50:43 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-06-15 03:50:43 +0200 |
commit | 6ed9a9699997a2853ec1c9e91747c251e5cfc97b (patch) | |
tree | 56c96f18442fb06aeeb45cadc56355353a63ee99 /ccc/animal.cc | |
parent | 258e1b92ebbfdebefabc120969ab87c3d8b75c3d (diff) |
damn
Diffstat (limited to 'ccc/animal.cc')
-rw-r--r-- | ccc/animal.cc | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/ccc/animal.cc b/ccc/animal.cc deleted file mode 100644 index 3bad1b1..0000000 --- a/ccc/animal.cc +++ /dev/null @@ -1,37 +0,0 @@ -#include <iostream> - -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 ^ -} - |