How to overload new operator in c++

Answers were Sorted based on User's Feedback



How to overload new operator in c++..

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

How to overload new operator in c++..

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

Post New Answer

More OOPS Interview Questions

what is the difference between class and structure in C++?

9 Answers   Aspire, IBS, TCS,


What exactly is polymorphism?

0 Answers  


what are the different types of qualifier in java?

0 Answers   TCS,


What is class and object in oops?

0 Answers  


what are abstract classes and how they impliment , with example

2 Answers  






write a C++ program for booking using constructor and destructor.

0 Answers   HAL,


What is a unary operator?

5 Answers  


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

0 Answers  


What are the 4 pillars of oop?

0 Answers  


What is the difference between declaration and definition?

20 Answers   IBS,


How do you answer polymorphism?

0 Answers  


Explain polymorphism? What r the types of polymorphism? pls give examples?

4 Answers   HCL,


Categories