The No. 478 Day of work

Source: Internet
Author: User

Today, with the flow of data to the small number of UML drawing out, take this opportunity to further familiarize yourself with the server framework. But the heart is still a lot of questions, these questions are mostly because I do not understand the implementation of the code, everywhere is the template class, see me straight dizzy. At this time, I should go to look at the design pattern, just like to see Yu Uchiha a family of the basement wall of the text, write round Eye of the pupil force to reach a certain state to see more things.

Why this sentiment, is today to see a class is this:

Class A{public:a ();    ~a ();p rotected:bool init (void) {... return dosomething (); } virtual bool DoSomething ();} ;

If I don't know if this is a template pattern, I'm sure it's a struggle to write about it. In this way, the implementation can be deferred to the subclass to achieve, with an init () interface can complete a variety of different sub-class initialization effect, very good.

So I think I need to further study the design pattern in order to read more code, or I really can not continue to play.



The No. 478 Day of work

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.