Add C++ duck typing example