Website Summary Files Commits Branches @commit @diff @stats
path: root / Big4_basic_examples / TestClass / Source.cpp
diff options
context:
space:
mode:
1 files changed, 20 insertions, 0 deletions
-rw-r--r--Big4_basic_examples/TestClass/Source.cpp20
diff --git a/Big4_basic_examples/TestClass/Source.cpp b/Big4_basic_examples/TestClass/Source.cpp
new file mode 100644
index 0000000..bdb8002
--- /dev/null
+++ b/Big4_basic_examples/TestClass/Source.cpp
@@ -0,0 +1,20 @@
+#include <iostream>
+#include "TestClass.h"
+
+using namespace std;
+
+
+int main()
+{
+ TestClass obj1(3, 3, "abc");
+
+ TestClass obj2(obj1);//copy const;
+
+ TestClass obj3(3, 1, "333");
+
+ obj3 = obj1; // operator=;
+
+ TestClass obj4 = obj3; ////copy const;
+
+
+} //destructors \ No newline at end of file