If a new operator is defined for a class and still global new operator have to be used, which operator should be used with the keyword new?
If a new operator is defined for a class and still global new operator have to be used, which operator should be used with the keyword new? Correct Answer Scope resolution
As usual, scope resolution operator is used to get the scope of parent or the global entities. Hence we can use scope resolution operator with the new operator to call the global new operator even if new operator is defined for the class explicitly.
মোঃ আরিফুল ইসলাম
Feb 20, 2025