2013-06-26 46 views

Trả lời

20

Bạn có thể chỉ định khởi cơ sở trong danh sách khởi tạo:

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

Tôi có thiếu cái gì?

Các vấn đề liên quan