Advertisement
Guest User

Untitled

a guest
May 30th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.68 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <string>
  3.  
  4. class Cards
  5. {
  6. private:
  7.     string name;
  8.     string mana;
  9.     string type;
  10.     int cmc;
  11.     int count;
  12.  
  13. public:
  14.     string Cards::getName() {
  15.         return this->name;
  16.     }
  17.     void Cards::setName(string n) {
  18.         this->name = n;
  19.     }
  20.     void Cards::setMana(string m) {
  21.         this->mana = m;
  22.     }
  23.     void Cards::setCmc(int c) {
  24.         this->cmc = c;
  25.     }
  26.     void Cards::setType(string t) {
  27.         this->type = t;
  28.     }
  29.     void Cards::setCount(int c) {
  30.         this->count = c;
  31.     }
  32.     string Cards::getMana() {
  33.         return this->mana;
  34.     }
  35.     int Cards::getCmc() {
  36.         return this->cmc;
  37.     }
  38.     string Cards::getType() {
  39.         return this->type;
  40.     }
  41.     int Cards::getCount() {
  42.         return this->count;
  43.     }
  44. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement