From a21f9229993aba1a88b18082544a64ad380e8397 Mon Sep 17 00:00:00 2001 From: Philipp Pister <philipp.pister@stud.h-da.de> Date: Thu, 25 May 2023 12:34:12 +0000 Subject: [PATCH] Upload New File --- Praktikum3/NaviConsole/adresse.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Praktikum3/NaviConsole/adresse.h diff --git a/Praktikum3/NaviConsole/adresse.h b/Praktikum3/NaviConsole/adresse.h new file mode 100644 index 0000000..9a80efd --- /dev/null +++ b/Praktikum3/NaviConsole/adresse.h @@ -0,0 +1,28 @@ +#ifndef ADRESSE_H +#define ADRESSE_H + +#include <iostream> +#include <string> +#include "navidaten.h" + +class Adresse : public NaviDaten +{ +public: + Adresse(double breitengrad, double laengengrad,const std::string& name, const std::string& strasse, const std::string& hausnummer, const std::string& postleitzahl, const std::string& stadt); + + std::string getName() const; + std::string getStrasse() const; + std::string getHausnummer() const; + std::string getPostleitzahl() const; + std::string getStadt() const; + void setID(int newID); + +private: + const std::string name; + const std::string strasse; + const std::string hausnummer; + const std::string postleitzahl; + const std::string stadt; +}; + +#endif // ADRESSE_H -- GitLab