Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include "Burrito.h"
- class BuckysClass {
- public:
- BuckysClass(std::string z) {
- setName(z);
- }
- void setName(std::string x) {
- name =x ;
- }
- std::string getName() {
- return name;
- }
- private:
- std::string name;
- };
- int main() {
- BuckysClass No("never");
- std::cout << No.getName() << std::endl;
- BuckysClass No2("Nope");
- std::cout << No2.getName() << std::endl;
- Burrito bo;
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment