Ipractice-logo


0

1

Answers

how can both the constructor and destructor can have the same name as that of the class??? bcoz the name of the destructor is prefixed by tilde symbol

about 12 years ago
Sneha r
Tiny_avatar19

Answers

0
hi sneha ,eventhough destructor is prefixed with a tilde symbol it is executed because of its name i.e. the class name .In order to differentiate constructor and destructor a tilde symbol is placed before destructor
about 12 years ago
Ram prasad
Tiny_billa

Doubts in this Question

Related doubts

0
how it is please explain it
over 6 years - 8778500419
0
how?
over 6 years - 8778500419
0
How to solve
almost 7 years - Sharan
0
how to save answer
almost 7 years - Adesh lone
1
how this can be possible it is a dihybrid test
almost 7 years - Abhinandan kumar
2
how to find rank of diagonal matrix
about 7 years - Thanmay
0
how 3? what are they?
about 7 years - Naveen
0
how
about 7 years - Naveen
0
how can i solve this
about 7 years - Keethiga
0
how can i solve this
about 7 years - Keethiga