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 difference between class and structure in C++?
What exactly is polymorphism?
what are the different types of qualifier in java?
What is class and object in oops?
what are abstract classes and how they impliment , with example
write a C++ program for booking using constructor and destructor.
What is a unary operator?
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
What are the 4 pillars of oop?
What is the difference between declaration and definition?
How do you answer polymorphism?
Explain polymorphism? What r the types of polymorphism? pls give examples?