From 919fa69dadfc7de571694eac1b40fc717dfdc861 Mon Sep 17 00:00:00 2001 From: mrgloom Date: Thu, 8 Dec 2016 19:14:04 +0300 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 75c84d3..57eb32f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,21 @@ C++ tips tricks and idioms ~~~ private constructor + singleton pattern + swap trick + + +prevent class inheritance +http://stackoverflow.com/questions/2184133/prevent-class-inheritance-in-c + +virtual destructor + +virtual inheritance +http://stackoverflow.com/questions/21558/in-c-what-is-a-virtual-base-class + +virtual function +http://stackoverflow.com/questions/2391679/why-do-we-need-virtual-functions-in-c + ~~~