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

Have you ever used threads?

3 Answers   Adobe, IBM,


what is the difference between javap and jad utility

1 Answers   Wipro,


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

0 Answers  


What is namespace?

15 Answers  


What Is a Polymorphism? How many types of polymorphism and whats that use in application?

2 Answers  


Why do we use class?

0 Answers  


features of OOPS

22 Answers   Ness Technologies, Satyam,


i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????

4 Answers  


Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.

1 Answers  


Write a program to reverse a string using recursive function?

0 Answers   TCS,


What is object and class in oops?

0 Answers  


What do you mean by variable?

0 Answers  


Categories