Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on Why do the IO library and the Diagnostic library make use of inheritance?

$
0
0
When you implement << and >> for your class, they accept a reference to the stream base class. How else could that work? (Yes, there are some possible alternative designs, but inheritance seems natural here.)

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>