2013-06-26 37 views

risposta

20

È possibile specificare l'inizializzazione di base nella lista di inizializzazione:

Derived:: Derived(const Derived& other): Base(other) 
{ /* ... */ } 
3
Derived(Derived const& d) 
: Base(d) 
/* some member initialization */ 
{ 
    /* ... */ 
} 

Mi sto perdendo qualcosa?

Problemi correlati