30 January 2011

The CPP questions

Templates
  • Create a class that provides singleton feature to derived classes. What are problems faced here?
Pipes and Filters Architecture pattern
  • How to control the data flow between various filters? Assume the data queue between filters is of length 1. What are the various synchronization techniques to control the data movement?
Copy constructor
  • Why Copy constructor parameters are constant references? How do auto pointers solve the problem of multiple references? What are temporary variables?

No comments: