2013-06-26 31 views

cevap

20

Sen başlatma listesindeki baz başlatma belirtebilirsiniz:

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

Eksik bir şey?

İlgili konular