How to overload new operator in c++
Answers were Sorted based on User's Feedback
Answer / r.ramakrishna
We want use the new operator in overloading by defining the
new()operator with the fallowing operation in the class.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / guest
class[] ob=new class[5];
ob[1]= new class();
ob[2]= new class();
ob[3]= new class();
ob[4]= new class();
ob[5]= new class();
| Is This Answer Correct ? | 1 Yes | 1 No |
What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5
What is the difference between a constructor and a destructor?
write knight tour problem which is present in datastructure
What is advantage of inheritance?
Should you protect the global data in threads? Why or why not?
What is a scope operator and tell me its functionality?
i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output
what is oppes
what is overloading and overriding?
How does polymorphism work?
What is object in oop with example?
What is a macro? And how is a macro same as a template?