InterviewSolution
Saved Bookmarks
| 1. |
The delete operator __________________________(a) Can be defined for each class(b) Can’t be defined for each class(c) Can be defined globally only(d) Can’t be defined in a program explicitlyThe question was asked in my homework.The doubt is from Delete Operator in section Memory Allocation & Scope of Variable of Object Oriented Programming |
|
Answer» RIGHT option is (a) Can be DEFINED for each CLASS The best I can EXPLAIN: The delete operator can be defined for each class EXPLICITLY. If there is a class for which delete is not defined then the global delete operator is used. The definition of delete operator for each class is not necessary. |
|