c ++ object-oriented programming notes five

1.static 

Static and non-static member

 Initialization, singleton

2.class template

3.funcation template

4.namespace using

.........


Inheritance, complex, commissioned

1.composition (composite)

has-a

Constructor and destructor: structure from inside to outside (the inside of the default constructor, added by the compiler is to call the default configuration version) from outside to inside destructor

 

2.delegation (commission)

That pimpl

 

3. inheritance is-a

First base structure from the inside out

Destructor from outside to inside their first

 

4. virtual functions and polymorphism

 

 

 

Published 44 original articles · won praise 5 · Views 1389

Guess you like

Origin blog.csdn.net/qq_33776188/article/details/104732723