Copy constructor can be like this
B(const B &b)
{
//initialization
}
Type: Posts; User: YogitaSabnis; Keyword(s):
Copy constructor can be like this
B(const B &b)
{
//initialization
}
I would like to explain briefly how it actually works
Whenever a program has a virtual function declared, a v-table is constructed for the class. The v-table consists of addresses to the virtual...