Non-virtual interface design pattern in C#/C++

The essence of the non-virtual interface pattern is that you have private virtual functions, which are called by public non-virtual functions (the non-virtual interface). The advantage of this is that the base class has more control over its behaviour than it would if derived classes were able to override any part of its interface. In … Read more

What is the point of a private pure virtual function?

The question in the topic suggest a pretty common confusion. The confusion is common enough, that C++ FAQ advocated against using private virtuals, for a long time, because confusion seemed to be a bad thing. So to get rid of the confusion first: Yes, private virtual functions can be overridden in the derived classes. Methods … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)