aboutsummaryrefslogtreecommitdiff
path: root/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp')
-rw-r--r--Ch 5 Debugging Project/Ch 5 Debugging Project.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
index 7ea8962..0dcf564 100644
--- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
+++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
@@ -83,5 +83,27 @@ int main()
cout << "After your raise you have $";
cout << money << endl;
+
return 0;
-} \ No newline at end of file
+}
+
+class Wall
+{
+
+ int health;
+
+ Wall(int newhealth)
+ {
+ health = newhealth;
+ }
+
+ void damage(int damage)
+ {
+ health -= damage;
+ }
+
+ void combine(Wall other)
+ {
+
+ }
+}; \ No newline at end of file