From 6866180b540f47930c7c2bc5ac526573032d299f Mon Sep 17 00:00:00 2001 From: Michael Ghebremussie <michael.ghebremussie@student.reutlingen-university.de> Date: Fri, 28 Oct 2022 18:15:19 +0000 Subject: [PATCH] Upload New File --- WeC/Cards.cpp | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 WeC/Cards.cpp diff --git a/WeC/Cards.cpp b/WeC/Cards.cpp new file mode 100644 index 0000000..1de8f62 --- /dev/null +++ b/WeC/Cards.cpp @@ -0,0 +1,58 @@ + +//Aufgabe 2 + +#include <iostream> + +using namespace std; + +class Cards { + +private: + string name; + string mana; + string cmc; + string type; + string count; + +public: + //setter + void setName(string name) { + this->name = name; + } + //getter Name + string getName() { + return name; + } + + void setMana(string mana) { + this->mana = mana; + } + + string getMana() { + return mana; + } + + void setCount(string count) { + this->count = count; + } + + string getCount() { + return count; + } + + void setCmc(string cmc) { + this->cmc = cmc; + } + + string getCmc() { + return cmc; + } + + void setType(string type) { + this->type = type; + } + + string getType() { + return type; + } +}; -- GitLab