/*
 * Lösung für Übung 9.6.4 - Deklarationen und Definitionen
 *
 * Die hinzugefügten Zeilen sind mit ## markiert
 */
#include <iostream>
#include "Plant.h"  // ## Fehlte in der Aufgabenstellung ##

// ## Fehlte in der Aufgabenstellung ##
Plant::Plant(const std::string& name)
  : name(name)
{
}

// ## Fehlte in der Aufgabenstellung ##
std::string Plant::getName() const
{
  return name;
}

void Plant::water()
{
  moisture++;
}

int main()
{
  Plant tulip("Tulpe");
  std::cout << tulip.getName() << std::endl;
  tulip.water();
  return 0;
}