DrDiagramm

no

Feb 8th, 2016
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include "Burrito.h"
  4. class BuckysClass {
  5. public:
  6. BuckysClass(std::string z) {
  7. setName(z);
  8. }
  9. void setName(std::string x) {
  10. name =x ;
  11. }
  12. std::string getName() {
  13. return name;
  14. }
  15. private:
  16. std::string name;
  17. };
  18. int main() {
  19. BuckysClass No("never");
  20. std::cout << No.getName() << std::endl;
  21.  
  22. BuckysClass No2("Nope");
  23. std::cout << No2.getName() << std::endl;
  24.  
  25. Burrito bo;
  26.  
  27. system("pause");
  28. return 0;
  29. }
Add Comment
Please, Sign In to add comment