C++ | new and delete | Question 3
Predict the output?
(A) Compiler Error
(C) Garbage Value
Explanation: There is compiler error: Test::Test() is private.
new makes call to the constructor. In class Test, constructor is private (note that default access is private in C++).
My Personal Notes arrow_drop_up
Please Login to comment...