summaryrefslogtreecommitdiffstats
path: root/C++/Final Program/person.h
diff options
context:
space:
mode:
Diffstat (limited to 'C++/Final Program/person.h')
-rw-r--r--C++/Final Program/person.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/C++/Final Program/person.h b/C++/Final Program/person.h
new file mode 100644
index 0000000..2ec6b47
--- /dev/null
+++ b/C++/Final Program/person.h
@@ -0,0 +1,15 @@
+#include <string>
+using namespace std;
+class Person {
+ private:
+ string fname;
+ string lname;
+ string favmov;
+ public:
+ void set_fname(string x) { fname = x; }
+ void set_lname(string x) { lname = x; }
+ void set_favmov(string x) { favmov = x; }
+ string get_fname() { return fname; }
+ string get_lname() { return lname; }
+ string get_favmov() { return favmov; }
+};