summaryrefslogtreecommitdiff
path: root/7p43.cpp
diff options
context:
space:
mode:
Diffstat (limited to '7p43.cpp')
-rw-r--r--7p43.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/7p43.cpp b/7p43.cpp
new file mode 100644
index 0000000..fb1b86b
--- /dev/null
+++ b/7p43.cpp
@@ -0,0 +1,29 @@
+#include <iostream>
+
+/*
+ *
+ * 7.43
+ *
+ *
+ */
+
+class NoDefault {
+public:
+ NoDefault(int j): i(j) {}
+ int geti() {return i;}
+private:
+ int i;
+};
+
+class C {
+public:
+ C(): nd(0) { }
+private:
+ NoDefault nd;
+};
+
+int main () {
+
+ C c;
+ return 0;
+}