Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 07 / Person / Person.h
diff options
context:
space:
mode:
1 files changed, 19 insertions, 0 deletions
-rw-r--r--Sem. 07/Person/Person.h19
diff --git a/Sem. 07/Person/Person.h b/Sem. 07/Person/Person.h
new file mode 100644
index 0000000..499c744
--- /dev/null
+++ b/Sem. 07/Person/Person.h
@@ -0,0 +1,19 @@
+#pragma once
+
+class Person
+{
+public:
+ Person(const char* name, int age);
+
+ void setName(const char* name);
+ void setAge(int age);
+
+ const char* getName() const;
+ int getAge() const;
+
+ void print();
+
+private:
+ char name[20];
+ int age;
+};